ref: 348eeb36408fd5d421c83a52cf9b3970fe1a8962
parent: 845350685f6ffbfe343c1bb0ac3ac0e6a90563b2
author: MHS <gek@katherine>
date: Wed Apr 7 08:54:36 EDT 2021
Automatic commit.
--- a/SDL_Examples/game.c
+++ b/SDL_Examples/game.c
@@ -87,28 +87,6 @@
return t;
}
-// Without display list
-void drawModelArrays(
- // HUGE important note! these depend on the math library using
- // f_ as float and not double!
- // Remember that!
- vec3* points, uint npoints, vec3* colors, vec3* normals, vec3* texcoords) {
- if (!points)
- return;
- glBegin(GL_TRIANGLES);
- for (uint i = 0; i < npoints; i++) {
- if (colors) { // Fix for TinyGL color interpolation.
- glColor3f(colors[i].d[0], colors[i].d[1], colors[i].d[2]);
- }
- if (texcoords)
- glTexCoord2f(texcoords[i].d[0], texcoords[i].d[1]);
- if (normals)
- glNormal3f(normals[i].d[0], normals[i].d[1], normals[i].d[2]);
- glVertex3f(points[i].d[0], points[i].d[1], points[i].d[2]);
- }
- glEnd();
-}
-
GLuint createModelDisplayList(
// HUGE important note! these depend on the math library using
// f_ as float and not double!