ogl.h File Reference

Class Ogl: a virtual (window system-independent) OpenGL object. More...

#include <sg/sg_base.h>

Include dependency graph for ogl.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sOgl
 Class Ogl: Definition. More...

Typedefs

typedef struct sOgl Ogl
 Declaration of the Ogl class as the Ogl structure.

Functions

OglOgl_ctor (int frameMode, int orthoMode)
 Construct an Ogl object.
void Ogl_dtor (Ogl **thee)
 Ogl object destructor.
void Ogl_initBegin (Ogl *thee)
 Initialize the OpenGL context.
void Ogl_initEnd (Ogl *thee)
 Initialize the OpenGL context.
void Ogl_beginList (Ogl *thee, int list, int show)
 Make a generic display list.
void Ogl_endList (Ogl *thee)
 Make a generic display list.
void Ogl_addListObject (Ogl *thee, int type, int numPV, float vx[][3], float c[4], float r, char text[])
 Make a generic display list.
void Ogl_reshape (Ogl *thee, int w, int h)
 The main 3D==>2D Projection function.
void Ogl_display (Ogl *thee)
 Main OpenGL display driver.
int Ogl_lightModeOnOff (Ogl *thee)
 Some simple callback routines to manipulate the object.
int Ogl_orthoModeOnOff (Ogl *thee)
 Some simple callback routines to manipulate the object.
int Ogl_frameModeOnOff (Ogl *thee)
 Some simple callback routines to manipulate the object.
int Ogl_ballModeOnOff (Ogl *thee)
 Some simple callback routines to manipulate the object.
int Ogl_bboxModeOnOff (Ogl *thee)
 Some simple callback routines to manipulate the object.
int Ogl_listModeOnOff (Ogl *thee, int list)
 Some simple callback routines to manipulate the object.
int Ogl_isList (Ogl *thee, int list)
 Some simple callback routines to manipulate the object.
int Ogl_isListOn (Ogl *thee, int list)
 Some simple callback routines to manipulate the object.
void Ogl_setMouseMode (Ogl *thee, int value)
 Primary rotation/scaling/translation routines.
void Ogl_mouseDown (Ogl *thee, int x, int y)
 Primary rotation/scaling/translation routines.
void Ogl_mouseUp (Ogl *thee, int x, int y)
 Primary rotation/scaling/translation routines.
void Ogl_mouseMotion (Ogl *thee, int x, int y)
 Primary rotation/scaling/translation routines.
int Ogl_spin (Ogl *thee)
 Primary rotation/scaling/translation routines.
void Ogl_resetPos (Ogl *thee)
 Some simple callback routines to manipulate the object.


Detailed Description

Class Ogl: a virtual (window system-independent) OpenGL object.

Author:
Michael Holst
Note:
None
Version:
Id
ogl.h,v 1.16 2009/04/24 22:54:38 fetk Exp

Attention:
 *
 * SG = < Socket Graphics >
 * Copyright (C) 1994--2008 Michael Holst
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 * 
 *  

Generated on Mon Aug 9 11:14:54 2010 for SG by  doxygen 1.5.6