|
|
|
|
@ -196,6 +196,13 @@ getGLTexture(GLContext* gl_ctx, Texture* diffuse_img)
|
|
|
|
|
return nullptr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
updateCameraTransforms(Transforms* xforms, GLBuffer* xform_ubo) |
|
|
|
|
{ |
|
|
|
|
glBindBuffer(xform_ubo->target, xform_ubo->id); |
|
|
|
|
glBufferSubData(xform_ubo->target, 0, sizeof(*xforms), xforms); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
renderVAO(GLMesh* glmesh, |
|
|
|
|
glm::mat4* node_xform, |
|
|
|
|
|