mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-21 20:39:57 +01:00
Remove more warnings
This commit is contained in:
parent
94823c3992
commit
4031adb8c0
1 changed files with 4 additions and 6 deletions
|
@ -74,13 +74,13 @@ S3L_Unit plantNormals[PLANT_VERTEX_COUNT * 3];
|
||||||
|
|
||||||
S3L_Unit catVertices[CAT1_VERTEX_COUNT * 3];
|
S3L_Unit catVertices[CAT1_VERTEX_COUNT * 3];
|
||||||
const S3L_Index *catTriangleIndices = cat1TriangleIndices;
|
const S3L_Index *catTriangleIndices = cat1TriangleIndices;
|
||||||
const S3L_Index *catUVs = cat1UVs;
|
const S3L_Unit *catUVs = cat1UVs;
|
||||||
const S3L_Index *catUVIndices = cat1UVIndices;
|
const S3L_Index *catUVIndices = cat1UVIndices;
|
||||||
|
|
||||||
S3L_Model3D catModel;
|
S3L_Model3D catModel;
|
||||||
|
|
||||||
S3L_Model3D model;
|
S3L_Model3D model;
|
||||||
uint8_t *texture;
|
const uint8_t *texture;
|
||||||
const S3L_Unit *uvs;
|
const S3L_Unit *uvs;
|
||||||
const S3L_Unit *normals;
|
const S3L_Unit *normals;
|
||||||
const S3L_Index *uvIndices;
|
const S3L_Index *uvIndices;
|
||||||
|
@ -167,8 +167,6 @@ void drawPixel(S3L_PixelInfo *p)
|
||||||
{
|
{
|
||||||
if (p->triangleID != previousTriangle)
|
if (p->triangleID != previousTriangle)
|
||||||
{
|
{
|
||||||
int16_t index;
|
|
||||||
|
|
||||||
if (mode == MODE_TEXTUERED)
|
if (mode == MODE_TEXTUERED)
|
||||||
{
|
{
|
||||||
S3L_getIndexedTriangleValues(p->triangleIndex,uvIndices,uvs,2,&uv0,&uv1,&uv2);
|
S3L_getIndexedTriangleValues(p->triangleIndex,uvIndices,uvs,2,&uv0,&uv1,&uv2);
|
||||||
|
@ -426,7 +424,7 @@ int main()
|
||||||
if (timeDiff >= 1.0)
|
if (timeDiff >= 1.0)
|
||||||
{
|
{
|
||||||
nextPrintT = nowT;
|
nextPrintT = nowT;
|
||||||
printf("\nFPS: %d\n",fps);
|
printf("FPS: %d\n",fps);
|
||||||
fps = 0;
|
fps = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -454,7 +452,7 @@ int main()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t *state = SDL_GetKeyboardState(NULL);
|
const uint8_t *state = SDL_GetKeyboardState(NULL);
|
||||||
|
|
||||||
int16_t rotationStep = S3L_max(1,300 * frameDiff);
|
int16_t rotationStep = S3L_max(1,300 * frameDiff);
|
||||||
int16_t moveStep = S3L_max(1,3000 * frameDiff);
|
int16_t moveStep = S3L_max(1,3000 * frameDiff);
|
||||||
|
|
Loading…
Reference in a new issue