aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glbits.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/glbits.c b/src/glbits.c
index 5aed16b..9624bc8 100644
--- a/src/glbits.c
+++ b/src/glbits.c
@@ -650,7 +650,6 @@ gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw)
GdkGLDrawable *gldrawable = gtk_widget_get_gl_drawable(widget);
float m[4][4];
GLfloat black[] = { 0.0, 0.0, 0.0, 1.0 };
- GLfloat green[] = { 0.0, 1.0, 0.0, 1.0 };
GLfloat blue[] = { 0.0, 0.0, 0.5, 1.0 };
GLfloat blue_spec[] = { 0.0, 0.0, 1.0, 1.0 };
GLfloat gold[] = { 0.5, 0.5, 0.0, 1.0 };
@@ -658,8 +657,6 @@ gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw)
GLfloat light0_position[] = { 0.1, 0.1, 1.0, 0.0 };
GLfloat light0_diffuse[] = { 0.8, 0.8, 0.8, 1.0 };
GLfloat light0_specular[] = { 0.8, 0.8, 0.8, 1.0 };
- GLfloat bg_top[] = { 0.0, 0.2, 0.0, 1.0 };
- GLfloat bg_bot[] = { 0.0, 0.0, 0.0, 1.0 };
GLfloat grey[] = { 0.6, 0.6, 0.6, 1.0 };
if ( !gdk_gl_drawable_gl_begin(gldrawable, glcontext) ) {
@@ -673,6 +670,8 @@ gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw)
GLfloat w = dw->drawing_area->allocation.width;
GLfloat h = dw->drawing_area->allocation.height;
GLfloat aspect = w/h;
+ GLfloat bg_top[] = { 0.7, 0.9, 0.7, 1.0 };
+ GLfloat bg_bot[] = { 0.4, 0.7, 0.4, 1.0 };
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
@@ -729,10 +728,10 @@ gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw)
GLfloat att[] = {1.0, 1.0, 0.0};
glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION, att);
- glPointSize(10.0);
+ glPointSize(20.0);
glEnable(GL_POINT_SMOOTH);
- glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, green);
+ glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, black);
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, black);
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, black);
glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 0.0);