t
This commit is contained in:
@@ -25,6 +25,7 @@ extern "C" {
|
||||
#ifndef MATHC_H
|
||||
#define MATHC_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
// CONFIG
|
||||
|
||||
@@ -15,7 +15,7 @@ void DrawMesh(struct mMesh *mesh, struct mShader *shader)
|
||||
uint32_t normalNr = 1;
|
||||
uint32_t heightNr = 1;
|
||||
|
||||
for (uint32_t i = 0; i < (mesh->te - mesh->textures); i++) {
|
||||
for (int i = 0; i < (mesh->te - mesh->textures); i++) {
|
||||
glActiveTexture(GL_TEXTURE0 + i); // active proper texture unit before binding
|
||||
// retrieve texture number (the N in diffuse_textureN)
|
||||
char number = 0;
|
||||
|
||||
@@ -59,7 +59,7 @@ void draw_model(struct mModel *model, struct mShader *shader)
|
||||
{
|
||||
if (lastRendered != model) {
|
||||
lastRendered = model;
|
||||
for (uint32_t i = 0; i < (model->mp - model->meshes); i++)
|
||||
for (int i = 0; i < (model->mp - model->meshes); i++)
|
||||
DrawMesh(&model->meshes[i], shader);
|
||||
} else {
|
||||
for (uint32_t i = 0; i < (model->mp - model->meshes); i++)
|
||||
|
||||
@@ -83,7 +83,7 @@ struct mSkybox *MakeSkybox(const char *cubemap)
|
||||
glBindTexture(GL_TEXTURE_CUBE_MAP, newskybox->id);
|
||||
/*char buf[100] = { '\0' };*/
|
||||
|
||||
for (unsigned int i = 0; i < 6; i++) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
/*
|
||||
buf[0] = '\0';
|
||||
strcat(buf, cubemap);
|
||||
|
||||
Reference in New Issue
Block a user