Fix #17, Add nuklear, Unified linux compilation
This commit is contained in:
@@ -25,7 +25,7 @@ void set_projection_mesh(struct projection projection)
|
||||
glVertexAttribPointer(3, 1, GL_FLOAT, 0, projection.m * sizeof(float),
|
||||
(float *)(projection.w * sizeof(float)));
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, p->n_vbo);
|
||||
glBindBuffer(GL_UNIFORM_BUFFER, p->n_vbo);
|
||||
glVertexAttribPointer(4, 1, GL_FLOAT, 0, projection.m * sizeof(float),
|
||||
(float *)(projection.x * sizeof(float)));
|
||||
glVertexAttribPointer(5, 1, GL_FLOAT, 0, projection.m * sizeof(float),
|
||||
@@ -63,8 +63,8 @@ mesh_t create_mesh(float *d, float *n, unsigned char m)
|
||||
if (n)
|
||||
{
|
||||
glGenBuffers(1, &p->n_vbo);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, p->n_vbo);
|
||||
glBufferData(GL_ARRAY_BUFFER, p->vertex * m * sizeof(float), n + 1,
|
||||
glBindBuffer(GL_UNIFORM_BUFFER, p->n_vbo);
|
||||
glBufferData(GL_UNIFORM_BUFFER, p->vertex * m * sizeof(float), n + 1,
|
||||
GL_STATIC_DRAW);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ void destroy_texture(unsigned int texture)
|
||||
return glDeleteTextures(1, &texture);
|
||||
}
|
||||
|
||||
id_t create_palette_texture(const unsigned char *colors, unsigned char n)
|
||||
id_t create_palette_texture(const unsigned char colors[][4], unsigned char n)
|
||||
{
|
||||
id_t texture = __config_texture(TYPE);
|
||||
glTexImage3D(
|
||||
|
||||
Reference in New Issue
Block a user