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 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

#include <GL/gl.h>
#include <GL/glx.h>
#include <stdio.h>
#include <stdlib.h>
#include <oglis.h>

int main( int argc, char *argv[] )
  int button=0; float x=0,y=0;
  int win;

  win = oglisOpen(300,300);
  glShadeModel( GL_FLAT );
  glClearColor( 0.5, 0.5, 0.5, 1.0 );
  glColor3f( 1.0, 1.0, 0.0 );
  glRectf( -0.8, -0.8, 0.8, 0.8 );
  oglisFlush( win );
  do {
     oglisButtonhit(win,&button, &x, &y );
  }while (button == 0 );
  return 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.

Download: 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

etc. etc.

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 (^_^);

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

Thank you.
multiwindow demo