2024-01-22 00:43:08 +01:00
|
|
|
#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);
|
2024-02-01 15:11:52 +01:00
|
|
|
void DrawSpriteBar(const glm::vec3 color, const glm::mat4 modelMatrix,const float progress, GLuint program);
|
2024-02-01 23:27:42 +01:00
|
|
|
void DrawHUDBar(const glm::vec3 color, const glm::mat4 modelMatrix, const float progress, GLuint program);
|
2024-01-22 00:43:08 +01:00
|
|
|
private:
|
|
|
|
|
|
|
|
unsigned int VAO;
|
|
|
|
unsigned int VBO;
|
|
|
|
unsigned int EBO;
|
|
|
|
// Initializes and configures the quad's buffer and vertex attributes
|
|
|
|
void initRenderData();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|