1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-11-22 20:49:58 +01:00

Fix function names

This commit is contained in:
Miloslav Ciz 2022-03-06 14:45:15 +01:00
parent 38657e33c1
commit ad34790ec3

View file

@ -44,10 +44,10 @@ int main()
screen[i] = '.';
S3L_Model3D triangleModel; // 3D model representing our triangle
S3L_initModel3D(triangleVertices,9,triangleTriangles,1,&triangleModel);
S3L_model3DInit(triangleVertices,9,triangleTriangles,1,&triangleModel);
S3L_Scene scene; // scene of 3D models (we only have 1)
S3L_initScene(&triangleModel,1,&scene);
S3L_sceneInit(&triangleModel,1,&scene);
// shift the camera a little bit so that we can see the triangle
scene.camera.transform.translation.z = -2 * S3L_FRACTIONS_PER_UNIT;