Difference for arch/ogl/ogl.c from version 1.4 to 1.5


version 1.4 version 1.5
Line 1
 
Line 1
 //#include <stdio.h>  //#include <stdio.h>
   #ifdef __WINDOWS__
   #include <windows.h>
   #endif
 #include <GL/gl.h>  #include <GL/gl.h>
 #include <GL/glu.h>  #include <GL/glu.h>
 #include "3d.h"  #include "3d.h"
Line 337
 
Line 340
  glShadeModel(GL_SMOOTH);   glShadeModel(GL_SMOOTH);
  glMatrixMode(GL_PROJECTION);   glMatrixMode(GL_PROJECTION);
  glLoadIdentity();//clear matrix   glLoadIdentity();//clear matrix
  gluPerspective(90.0,(GLfloat)(grd_curscreen->sc_w*3)/(GLfloat)(grd_curscreen->sc_h*4),1.0,1000000.0);   //gluPerspective(90.0,(GLfloat)(grd_curscreen->sc_w*3)/(GLfloat)(grd_curscreen->sc_h*4),1.0,1000000.0);
    gluPerspective(90.0,(GLfloat)(grd_curscreen->sc_w*3)/(GLfloat)(grd_curscreen->sc_h*4),0.1,1000000.0);
 // gluPerspective(75.0,(GLfloat)Canvas_width/(GLfloat)Canvas_height,1.0,1000000.0);  // gluPerspective(75.0,(GLfloat)Canvas_width/(GLfloat)Canvas_height,1.0,1000000.0);
  glMatrixMode(GL_MODELVIEW);   glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();//clear matrix   glLoadIdentity();//clear matrix
  glEnable(GL_BLEND);   glEnable(GL_BLEND);
  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);   glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    glDisable(GL_DITHER);
 // glScalef(1.0,1.0,-1.0);  // glScalef(1.0,1.0,-1.0);
 // glScalef(1.0,1.0,-1.0);  // glScalef(1.0,1.0,-1.0);
 // glPushMatrix();  // glPushMatrix();

Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5