Date: Sun, 13 Feb 2000 17:53:30 +0100 (MET) From: Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de> To: freebsd-questions@freebsd.org Subject: Working with OpenGL under FreeBSD. Message-ID: <Pine.GSO.4.10.10002131745190.3312-300000@sun33>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Explanation of included files:
1) Short && stupid script for compilation of source files that include
some GL-libraries.
2)My own header(I tried to include GL/glut.h and this failed. and some
colour definitions)
Both of them I took from my working development under SUN and Linux.
With some obvious changes.(usr/openwin was changed to /usr/X11R6)
Problem description:
As soon as I Start to compile something.I get error from compiler with
complaints that it could not find GL/glut.h from another included file.
Another included file is ogl.h surely.)File /usr/X11R6/GL/glut.h and
I tried to include it with full path it has not worked either.
Any solutions,suggestions,hints ?
In case you have any additional questions I will be glad to answer them
regards,
Ariel
[-- Attachment #2 --]
#!/bin/sh
NAME=`basename $1 .c`
shift
gcc -o ${NAME} ${NAME}.c $* -L/usr/X11R6/lib -lglut -lX11 -lGL -lGLU -lXi -lXmu -lm
[-- Attachment #3 --]
#ifndef OGL_H
#define OGL_H
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define ESC 27
#endif
float weiss[]={1.0, 1.0, 1.0};
float schwarz[]={0.0, 0.0, 0.0};
float hellgrau[]={0.8, 0.8, 0.8};
float grau[]={0.5, 0.5, 0.5};
float dunkelgrau[]={0.3, 0.3, 0.3};
float braun[]={0.50196078, 0.0, 0.0};
float sand[]={0.8, 0.6, 0.2};
float beige[]={1.0, 0.8, 0.6};
float rose[]={1.0, 0.4, 0.4};
float bordo[]={0.69019608, 0.18823529, 0.37647059};
float rot[]={1.0, 0.0, 0.0};
float kirsch[]={1.0, 0.0, 0.28235294};
float orange[]={1.0, 0.5, 0.0};
float gold[]={1.0, 0.8, 0.0};
float gelb[]={1.0, 1.0, 0.0};
float hellgruen[]={0.0, 1.0, 0.0};
float gruen[]={0.0, 0.8, 0.0};
float olive[]={0.5, 0.5, 0.0};
float cyan[]={0.0, 0.0, 1.0};
float himmelblau[]={0.0, 0.8, 1.0};
float blau[]={0.0, 0.0, 0.8};
float pink[]={1.0, 0.0, 1.0};
float violett[]={0.5, 0.0, 0.5};
float flieder[]={0.75294118, 0.0, 0.75294118};
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10002131745190.3312-300000>
