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
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
41b4ed4d6d
set up the attrib mappings for the default shaders automatically
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
9fa7d4be4c
remove position argument from loadGLMesh/initGLMesh
...
We can always update the position afterwards if needed
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
16e90d6790
(re-)implement texture loading
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
8dac55ea1e
rename memory_arena struct to MemoryArena
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
62539c777f
use RenderGroups and Entities to store groups of meshes
5 years ago
cinnaboot
6fdbcdc921
remove unused GLmeshMapping struct
5 years ago
cinnaboot
364e4de995
remove old code path for static shader attributes
5 years ago
cinnaboot
62e76e982b
get dynamic vertex attribute parsing working
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
edd4fc6239
add new GLMeshMapping structure
5 years ago
cinnaboot
96e94a5b23
add FIXME about mapping shaders to meshes
5 years ago
cinnaboot
7790ba2cda
reorganize shader header
5 years ago
cinnaboot
001190fc73
break up addShader() into logical helper functions
5 years ago
cinnaboot
0cf86ec626
move getShader functions to shader interface
5 years ago
cinnaboot
b22b6f8b23
remove 'name_len' from GLUniformBLock struct
5 years ago
cinnaboot
608ae99f2e
remove 'name_len' from gl_uniform struct and use new helper
5 years ago
cinnaboot
ba0c18bac7
remove gl_mesh_array and light_array structures
5 years ago
cinnaboot
56ac0b5440
add parseUniformBlocks() and updated related structs
5 years ago
cinnaboot
ed544013b5
remove ShaderArray struct, and add shaders to GLContext
5 years ago
cinnaboot
f3e3de55c5
add types.h include
5 years ago
cinnaboot
35d9371c0e
break out parseUniform() from parseShaderUniforms()
5 years ago
cinnaboot
8e0ee5411c
break out shader specific functions to separate file
5 years ago
cinnaboot
ec144d48e2
add some support libs, move sources to src/
5 years ago