Asset Progress

This commit is contained in:
2023-11-25 15:51:20 -06:00
parent c2fb75df97
commit 89fe77c07e
25 changed files with 787 additions and 119 deletions

View File

@ -26,6 +26,10 @@ int32_t Texture::getHeight() {
return this->height;
}
bool_t Texture::isReady() {
return this->id != -1;
}
void Texture::setSize(
const int32_t width,
const int32_t height,

View File

@ -32,7 +32,7 @@ namespace Dawn {
const enum TextureFormat format,
const enum TextureDataFormat dataForat
) override;
// bool_t isReady() override;
bool_t isReady() override;
void buffer(const struct ColorU8 pixels[]) override;
void buffer(const struct Color pixels[]);
void buffer(const uint8_t pixels[]) override;

View File

@ -14,7 +14,7 @@
namespace Dawn {
typedef GLuint shadertexturebinding_t;
enum ShaderOpenGLVariant {
enum class ShaderOpenGLVariant {
GLSL_330_CORE
};
@ -60,7 +60,7 @@ namespace Dawn {
*/
void init() override {
// Determine which kind of OpenGL shader to use.
variant = GLSL_330_CORE;
variant = ShaderOpenGLVariant::GLSL_330_CORE;
// Now get the stages
T dummy;