]> granicus.if.org Git - graphviz/commitdiff
remove unused LoadGLTextures
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 12 Apr 2021 04:10:56 +0000 (21:10 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Apr 2021 19:12:54 +0000 (12:12 -0700)
cmd/smyrna/glexpose.c

index 996892ec200141c1c77e8eda9946728562f19dc5..d5f475f8cfa9c50b7fba5327b87c00afada02def 100644 (file)
 GLuint texture[3];
 static int Status=0;                                                                   // Status Indicator
 
-void LoadGLTextures()                                                                  // Load Bitmaps And Convert To Textures
-{
-       int imageWidth,imageHeight;
-
-       unsigned char *data = glCompLoadPng ("c:/graphviz-ms/bin/Data/Crate.png", &imageWidth, &imageHeight);
-
-       if (!data)
-       {
-           printf ("Data/Crate.bmp could not be located\n");
-           exit(-1);
-       }
-       // Load The Bitmap, Check For Errors, If Bitmap's Not Found Quit
-       glGenTextures(3, &texture[0]);                                  // Create Three Textures
-
-               // Create Nearest Filtered Texture
-               glBindTexture(GL_TEXTURE_2D, texture[0]);
-               glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
-               glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
-               glTexImage2D(GL_TEXTURE_2D, 0, 3, imageWidth,imageHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, data);
-
-               // Create Linear Filtered Texture
-               glBindTexture(GL_TEXTURE_2D, texture[1]);
-               glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
-               glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
-               glTexImage2D(GL_TEXTURE_2D, 0, 3, imageWidth,imageHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, data);
-
-               // Create MipMapped Texture
-               glBindTexture(GL_TEXTURE_2D, texture[2]);
-               glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
-               glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
-               gluBuild2DMipmaps(GL_TEXTURE_2D, 3, imageWidth,imageHeight, GL_RGBA, GL_UNSIGNED_BYTE,data);
-       Status=1;                                                                       // Set The Status To TRUE
-}
-
 static void drawRotatingAxis(void)
 {
     static GLUquadricObj *quadratic;