diff options
author | mattkae <mattkae@protonmail.com> | 2022-05-01 18:37:59 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-05-01 18:37:59 -0400 |
commit | dfc387644939aada1edb69f8f730e62f116f1ae3 (patch) | |
tree | d38b17d0b21fd579f1330546394462964a08600e /themes/deprecated | |
parent | 1db914466663a1e4d0d827b8b9bd18840d7742eb (diff) |
Fetching bunny model
Diffstat (limited to 'themes/deprecated')
-rw-r--r-- | themes/deprecated/TreeRenderer.cpp | 2 | ||||
-rw-r--r-- | themes/deprecated/TreeRenderer.h | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/themes/deprecated/TreeRenderer.cpp b/themes/deprecated/TreeRenderer.cpp index ef1ed79..ef18a46 100644 --- a/themes/deprecated/TreeRenderer.cpp +++ b/themes/deprecated/TreeRenderer.cpp @@ -35,7 +35,7 @@ void TreeRenderer::load(WebglContext* context) { printf("TreeRenderer shader compiled.\n"); } -void TreeRenderer::render(float32 dtSeconds) { +void TreeRenderer::render(f32 dtSeconds) { timeElapsed += dtSeconds; glEnable(GL_DEPTH_TEST); diff --git a/themes/deprecated/TreeRenderer.h b/themes/deprecated/TreeRenderer.h index 8a8bf7f..b5f18d5 100644 --- a/themes/deprecated/TreeRenderer.h +++ b/themes/deprecated/TreeRenderer.h @@ -9,24 +9,24 @@ struct WebglContext; struct TreeRenderer { Mat4x4 projection; - uint32 shader; + u32 shader; Vector4 clearColor; struct { - int32 position; - int32 color; + i32 position; + i32 color; } attributes; struct { - int32 projection; - int32 model; + i32 projection; + i32 model; } uniforms; - float32 timeElapsed = 0.f; - float32 frequency = 5.f; + f32 timeElapsed = 0.f; + f32 frequency = 5.f; void load(WebglContext* context); - void render(float32 dtSeconds); + void render(f32 dtSeconds); void unload(); }; |