Skip to content
Snippets Groups Projects
Commit bbcd76a9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

cleanings

parent 2aaa1615
No related branches found
No related tags found
No related merge requests found
// $Id: Draw.cpp,v 1.24 2001-04-17 06:55:47 geuzaine Exp $
// $Id: Draw.cpp,v 1.25 2001-08-06 16:47:57 geuzaine Exp $
#include "Gmsh.h"
#include "GmshUI.h"
......@@ -137,22 +137,11 @@ void Orthogonalize(int x, int y){
void InitRenderModel(void)
{
int i;
float ambient[] = {0.5, 0.5, 0.5};
float diffuse[] = {0.4, 0.4, 0.4};
float specular[4];
if(CTX.post.smooth){//temporaire
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, ambient);
glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, diffuse);
}
for(i = 0 ; i < 6 ; i++){
if(CTX.light[i]){
glLightfv((GLenum)(GL_LIGHT0 + i), GL_POSITION, CTX.light_position[i]);
if(CTX.post.smooth){//temporaire
glLightfv((GLenum)(GL_LIGHT0 + i), GL_AMBIENT, ambient);
glLightfv((GLenum)(GL_LIGHT0 + i), GL_DIFFUSE, diffuse);
}
glEnable((GLenum)(GL_LIGHT0 + i));
}
}
......
// $Id: Entity.cpp,v 1.10 2001-08-03 21:27:20 geuzaine Exp $
// $Id: Entity.cpp,v 1.11 2001-08-06 16:47:57 geuzaine Exp $
#include "Gmsh.h"
#include "GmshUI.h"
......@@ -77,11 +77,6 @@ void Draw_Triangle (double *x, double *y, double *z, double *n,
void Draw_Quadrangle (double *x, double *y, double *z, double *n,
double Raise[3][5], int shade){
/*
I think this gives better results
*/
double x2[3]={x[2],x[3],x[0]};
double y2[3]={y[2],y[3],y[0]};
double z2[3]={z[2],z[3],z[0]};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment