Browse Source

move TODO about loading interface and add a NOTE in loadScene

main
cinnaboot 5 years ago
parent
commit
09c5d2a292
  1. 6
      src/main.cpp
  2. 2
      src/tangerine.h

6
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;

2
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...
*/

Loading…
Cancel
Save