OGLIS-2011 (descender of the "oglis" made in 2004)
as of 6th of April, 2012
OGLIS-2011 offers for linux systems and X11, a library to provide "Structured style programming" environment for writing OpenGL programs under C-language.
Following is a typical C-program writing OpenGL Program using OGLIS-2011.
/* $Id: glxdemo.c,v 188.8.131.52 1999/08/19 00:55:43 jtg Exp $ */
/* modified as glxdemo_05.c from glxdemo.c on 2003 Dec.21st 23:15 */
* A demonstration of using the GLX functions.
* This program is only a sample. copy, useit free.
* $Log: demo_05.c,v $
* Revision 0.0.5 2003 Dec. 30th 02:35
* revised for oglis 0.0.3 on Mar. 25th, 2004 by H.F.KOWATARI
int main( int argc, char *argv )
int button=0; float x=0,y=0;
win = oglisOpen(300,300);
glShadeModel( GL_FLAT );
glClearColor( 0.5, 0.5, 0.5, 1.0 );
glClear( GL_COLOR_BUFFER_BIT );
glColor3f( 1.0, 1.0, 0.0 );
glRectf( -0.8, -0.8, 0.8, 0.8 );
oglisFlush( win );
oglisButtonhit(win,&button, &x, &y );
}while (button == 0 );
when you compile and run the program, you get following window popped up and displayed (wallpaper in the image are not included.)
demo_05 (wallpaper in the image are not included.)
Everything is written in main() function just as in old C-language style with with "structured programming." Not the "Event-driven programming" that now a days people use widely in the world to write in X-Window System programming and so forth.
Yes, I know the "Event-driven Programming" is a very good way for writing very complex programs of today's up-to-date well looking applications under GUI. However, the structured programming style offers you very simple implementations with straight forward easy to understand, I mean, in a way you just have to follow the C program source one line by line, starting off from main(), there is everything.
So here it is..... the library you can write OpenGL C-Language programs with structured programming style.
besure to download OpenGL development files as well as X11 development files.
sudo apt-get install libx11-dev
sudo apt-get install mesa-common-dev
sudo apt-get install freeglut3-dev
This is what oglis-2011 library offers.
disclaimer: I (Frank) am not perfect. To be exact, I am far off from perfect. The followings are what I intended to do, and yes, tested, under my environment of ubuntu 11.10 of 32bit x86, and 64bit amd64. Perhaps you could provide me a fix (^_^);
- Tested under Linux (to be specific, ubuntu 11.10 64bit amd64 and 32bit x86)
- All the programs are distributed under GPL license following to EGGX/PROCALL its engine.
- Provides simple win=oglisOpen(); style to startoff,
- function to open a window on a X Window Systems. All the OpenGL functions are able to be used for the windows at very previously opened by
then the drawing starts with
window closes by
please refer the Documents.
- Opening/controlling multiple windows are simple just as specifying different variable for the win.
- almost all the oglis*() functions are controlled by win, win2, win3... whatever the variable you specify so that you can specify multiple windows respectably with different variable of win.
I have put the very well known programs in OpenGL in the "Red Book" into Oglis-2011 implementation, you might want to refer at.
Please see following documents
All the programs were able to be made under the technology of eggx/PROCALL made by C. Yamauchi.
Thank you personally to JIJI san of Italy for pointing out the library maybe useful in some environment for some specific usage.
copyright 2004, 2011 H. Frank Kowatari under GPL