From 09c5d2a292cfff1394c0ab2f3a4a5938c9c7ba95 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sat, 15 Jan 2022 11:03:03 -0500 Subject: [PATCH] move TODO about loading interface and add a NOTE in loadScene --- src/main.cpp | 6 +++--- src/tangerine.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6278b4e..b55d536 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,14 +7,14 @@ bool loadScene(RenderState* rs) { - // TODO: come up with an easy to use interface for loading a model, setting - // up the buffer to attrib mappings, and initializing a render group - // NOTE: load model model* tex_cube = getModelByPath(&rs->assets, "../data/textured_cube.gltf"); if (!tex_cube) return false; // NOTE: load new shader, or get one of the defaults + // NOTE: the default shaders already have their attribute mappings created + // in initRenderState, but if you use a custom shader, you will need to + // create a GLBufferToAttribMapping manually shader_program* s_default = getShaderByName("default", rs->gl_ctx); if (!s_default) return false; diff --git a/src/tangerine.h b/src/tangerine.h index 6837b48..8f5347d 100644 --- a/src/tangerine.h +++ b/src/tangerine.h @@ -14,7 +14,6 @@ /* * === TODO: === -* - work on cleaner interface for initEntity and loadScene... * - add a LOGF macro for printf style logging * - replace instances of printf * - full lighting model @@ -42,6 +41,7 @@ * - load texture into gl if not cached * - pass result GLTexture to loadGLMesh() * - update loadScene function with textured models, and test texture loading +* - work on cleaner interface for initEntity and loadScene... */