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 |
cinnaboot
|
b6c48fa53b
|
add note about using u16 instead of u32
|
5 years ago |
cinnaboot
|
6f982c39de
|
remove error checking for uniform data_size
would never reach that code path because we previously added
and assertion
|
5 years ago |
cinnaboot
|
edd4fc6239
|
add new GLMeshMapping structure
|
5 years ago |
cinnaboot
|
0e0c5aa903
|
add more debug info for vertex attribs
|
5 years ago |
cinnaboot
|
96e94a5b23
|
add FIXME about mapping shaders to meshes
|
5 years ago |
cinnaboot
|
7790ba2cda
|
reorganize shader header
|
5 years ago |
cinnaboot
|
797fb244eb
|
add more enums to glEnumToString()
|
5 years ago |
cinnaboot
|
be0a97ed2c
|
move utility functions from arena.h to util.h
|
5 years ago |
cinnaboot
|
7a452ff97f
|
add util.h single file header
|
5 years ago |