cinnaboot
7e4eadd16a
add cstdio header to shader.cpp
5 years ago
cinnaboot
87f0523434
add extra logging for shader linking errors
5 years ago
cinnaboot
3c9b7c9376
add full lighting shader with debug values
5 years ago
cinnaboot
e47af665c6
update TODO list
5 years ago
cinnaboot
6bd954923d
change hash_str creation to use snprintf
5 years ago
cinnaboot
974c03b289
move default shaders into git
5 years ago
cinnaboot
6ed9bc8688
stop tracking shaders in git-lfs
5 years ago
cinnaboot
8d0f3be381
rename instances of model_matrix to node_matrix
...
model matrix is the transform that should be applied at the entity
level. Anything with and entity as parent should be transformed with a
node matrix
5 years ago
cinnaboot
9a7a9ce16e
update TODO
5 years ago
cinnaboot
9f94c153f8
rename structures in asset.h to consistent style
5 years ago
cinnaboot
99db662ac5
rename data structure in shader.h to consistent style
5 years ago
cinnaboot
2461e499ee
replace instances of printf with new logging macro
5 years ago
cinnaboot
e13d5cf8ec
add a printf style logging macro
5 years ago
cinnaboot
fd95561ebd
make example cubes a little bigger
5 years ago
cinnaboot
7687335719
update TODO list with new items
5 years ago
cinnaboot
2005cfb4ec
speed up debugging by adding fewer symbols during compilation
5 years ago
cinnaboot
09c5d2a292
move TODO about loading interface and add a NOTE in loadScene
5 years ago
cinnaboot
1013506095
make use of new shader init interface in example
5 years ago
cinnaboot
eee1cae65e
remove addShaders from example since load them automatically
5 years ago
cinnaboot
41b4ed4d6d
set up the attrib mappings for the default shaders automatically
5 years ago
cinnaboot
2e0dd1ab5a
move getMeshData function to internal
5 years ago
cinnaboot
dd64cae398
add a function to get the correct mesh buffer automatically
...
Previously we had to add the correct buffer to the
GLBufferToAttribMapping struct. This doesn't work if we want to deal
with entities at a high level. Now we can specify the buffer type as an
enum, and have a helper function get a reference to the corrent mesh
buffer when loading into GL.
5 years ago
cinnaboot
9232f5c7a3
update TODO items
5 years ago
cinnaboot
54a68455cc
reorder tangerine.h interface into logical groups
5 years ago
cinnaboot
6fcac783b6
rename some uint types to u32/u64
5 years ago
cinnaboot
5c3760eab2
clean up renderer initialization, and loop interface
...
Now we match the style of libTangerine where we pass in callbacks to a
doRenderLoop function, and handle SDL calls internally
5 years ago
cinnaboot
a6ca5d6f41
loop at 16ms intervals instead of 60ms
5 years ago
cinnaboot
fe12df53a6
breakdown loadScene function into discrete steps
5 years ago
cinnaboot
2c96e98fee
free render group arena in freeRenderState
5 years ago
cinnaboot
27e8eaa676
add more todo items to global todo list
5 years ago
cinnaboot
37b4910e0f
add scaleEntity function
5 years ago
cinnaboot
37f9f8f876
add Debug log level string
5 years ago
cinnaboot
9fa7d4be4c
remove position argument from loadGLMesh/initGLMesh
...
We can always update the position afterwards if needed
5 years ago
cinnaboot
b1804b34ee
add overall TODO list to main.cpp
5 years ago
cinnaboot
49140669f1
fix the debug shader normal transforms
5 years ago
cinnaboot
a1ff310a46
get textured rendering working again
5 years ago
cinnaboot
d71a988be4
fix bug reusing attrib_mappings variable in loadScene()
5 years ago
cinnaboot
16e90d6790
(re-)implement texture loading
5 years ago
cinnaboot
901c65cc6c
add FIXME in loadScene about reusing attrib_mappings
5 years ago
cinnaboot
b1e55782b0
add max_vertex_attribs property to GLContext
5 years ago
cinnaboot
8370a69ed4
update asset cache and loading interface
5 years ago
cinnaboot
062205a2f9
move Entity structure and interface to separate files
5 years ago
cinnaboot
23318500f6
allocate Assets structure as part of render state
...
This lets us move the asset MemoryArena to the Asset structure to be
able to pass it around without needing a reference to RenderState
everywhere.
5 years ago
cinnaboot
150b14bb89
update default shader source
5 years ago
cinnaboot
8dac55ea1e
rename memory_arena struct to MemoryArena
5 years ago
cinnaboot
7cef2a5c3a
rename assetGetCached to assetGetCachedModel()
5 years ago
cinnaboot
65c12555b2
add GLTexture structure, and gl_ctx->textures
5 years ago
cinnaboot
e4568cb987
remove unused gl_buffer pointer on GLBufferToAttribMapping structure
5 years ago
cinnaboot
c3c3a5be61
move copyDiffuseTexture function from interface section
5 years ago
cinnaboot
62539c777f
use RenderGroups and Entities to store groups of meshes
5 years ago