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
cinnaboot
6fdbcdc921
remove unused GLmeshMapping struct
5 years ago
cinnaboot
a636a3182e
remove debug code from parseAttributes function
5 years ago
cinnaboot
e453524eae
add define for MAX_GL_MESHES
5 years ago
cinnaboot
48ac0ce1c2
add rg_arena to RenderState, and rename rs->arena to asset_arena
5 years ago
cinnaboot
50f0ea4c22
allocate RenderState, and SDLHandles outside memory arena
5 years ago
cinnaboot
2f2a496d48
replace assertion with conditional in utilSafeFree()
5 years ago
cinnaboot
40de8a1ed4
add TODOs for loadGLMesh error handling
5 years ago
cinnaboot
364e4de995
remove old code path for static shader attributes
5 years ago
cinnaboot
678fd92e91
remove TODO that we todid
5 years ago
cinnaboot
62e76e982b
get dynamic vertex attribute parsing working
5 years ago
cinnaboot
b98cc29e1b
add helper functions for GL type sizes
5 years ago
cinnaboot
cff3cb35b4
update debug shader to view normal without transform
5 years ago
cinnaboot
8e1aa44672
remove draw_mode and usage from mesh struct
5 years ago
cinnaboot
0c647f9f2d
add UTIL_ALLOC macro for calloc
5 years ago
cinnaboot
95baf4cfe9
add helper function to get attrib->num_components from GLenum
5 years ago
cinnaboot
0084745cdb
fix function declaration styling
5 years ago
cinnaboot
346fedcf9b
add FIXME to create helper for GLVertexAttrib num_components
5 years ago
cinnaboot
66600f1366
test a loadGLMesh() with GLBufferToAttribMapping struct
5 years ago
cinnaboot
c14924dfef
add data structures for new shader to entity abstraction
5 years ago
cinnaboot
5fac395618
add GLVertexAttrib struct to distinguish from gl_buffer
5 years ago
cinnaboot
77f1c02781
remove ambiguous data_size property from gl_buffer structure
5 years ago