28 lines
734 B
C++
28 lines
734 B
C++
#include "src/Render_Utils.h"
|
|
#include "src/Texture.h"
|
|
#include "Spaceship.h"
|
|
|
|
#pragma once
|
|
namespace Core {
|
|
class SpriteRenderer
|
|
{
|
|
public:
|
|
SpriteRenderer();
|
|
~SpriteRenderer();
|
|
void DrawSprite(GLuint spriteTexture, const glm::mat4 modelMatrix, GLuint program);
|
|
void DrawSpriteBar(const glm::vec3 color, const glm::mat4 modelMatrix,const float progress, GLuint program);
|
|
void DrawHUDBar(const glm::vec3 color, const glm::mat4 modelMatrix, const float progress, GLuint program);
|
|
private:
|
|
|
|
unsigned int VAO;
|
|
unsigned int VBO;
|
|
unsigned int EBO;
|
|
// Initializes and configures the quad's buffer and vertex attributes
|
|
void initRenderData();
|
|
|
|
|
|
|
|
};
|
|
}
|
|
|