• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KGLLib

KGLLib Namespace Reference


Detailed Description

KGLLib namespace.

Everything within KGLLib is contained in this namespace.


Classes

class  Batch
 A set of geometry. More...
class  Camera
 Camera class. More...
class  FPSCounter
 Utility class that measures FPS. More...
class  FragmentShader
 Fragment shader subclass, so you needn't pass the type=GL_FRAGMENT_SHADER parameter to Shader constructor yourself. More...
class  GeometryBuffer
 Collection of geometry data. More...
class  GeometryBufferFormat
 Utility class to represent format of a GeometryBuffer. More...
class  GeometryBufferVBO
 GeometryBuffer that uses VBOs. More...
class  GeometryBufferVertexArray
 GeometryBuffer that uses vertex arrays. More...
class  GLWidget
 Easy to use GL widget, based on QGLWidget. More...
class  HdrGLWidget
class  HdrGLWidgetControl
class  Mesh
 Set of geometry with program and texture(s). More...
class  ModelLoader
class  Program
 Program class. More...
class  Renderer
class  RenderTarget
class  Shader
 Shader class. More...
class  SimpleTerrain
class  TextRenderer
 
Author:
Benoit Jacob
More...
class  Texture
 2D texture class More...
class  Texture3D
 3D texture class More...
class  TextureBase
 Abstract base class for all textures. More...
class  TrackBall
class  VertexShader
 Vertex shader subclass, so you needn't pass the type=GL_VERTEX_SHADER parameter to Shader constructor yourself. More...
class  WidgetProxy
 Embeds QWidgets in GLWidget. More...

Functions

bool checkGLError (const QString &desc)
bool init (Renderer *r=0)
bool isVersion (unsigned int a, unsigned int b, unsigned int c)
template<typename T>
T * listToArray (const QList< T > &list)
QDebug & operator<< (QDebug &debug, const Vector2f &v)
QDebug & operator<< (QDebug &debug, const Vector3f &v)
uint qHash (const ModelLoader::FaceVertex &v)
unsigned int version ()
unsigned int versionMajor ()
unsigned int versionMinor ()
unsigned int versionRelease ()
const char * versionString ()

Variables

Renderer * renderer = 0

Function Documentation

KGLLIB_EXPORT bool KGLLib::checkGLError ( const QString &  desc  ) 

Checks if any OpenGL errors have occurred.

If an error has occurred, the error is printed out along with the given description.

Returns:
whether error has _not_ occurred (i.e. if error has occurred, return false) TODO: maybe change it to return whether errors _has_ occurred?

Definition at line 48 of file kgllib.cpp.

KGLLIB_EXPORT bool KGLLib::init ( Renderer *  r = 0  ) 

Initializes KGLLib.

Note that you must have a current OpenGL context when you call this, otherwise it will fail.

Parameters:
r if given then renderer pointer is set to this object and it's init() method is called. If not given then default Renderer object is created.
Returns:
whether initialization succeeded.

Definition at line 30 of file kgllib.cpp.

bool KGLLib::isVersion ( unsigned int  a,
unsigned int  b,
unsigned int  c 
)

Definition at line 43 of file kgllib_version.cpp.

template<typename T>
T* KGLLib::@30::listToArray ( const QList< T > &  list  )  [inline, static]

Definition at line 79 of file modelloader.cpp.

QDebug& KGLLib::operator<< ( QDebug &  debug,
const Vector2f &  v 
)

Definition at line 95 of file modelloader.cpp.

QDebug& KGLLib::operator<< ( QDebug &  debug,
const Vector3f &  v 
)

Definition at line 91 of file modelloader.cpp.

uint KGLLib::qHash ( const ModelLoader::FaceVertex &  v  ) 

Definition at line 72 of file modelloader.cpp.

unsigned int KGLLib::version (  ) 

Definition at line 23 of file kgllib_version.cpp.

unsigned int KGLLib::versionMajor (  ) 

Definition at line 28 of file kgllib_version.cpp.

unsigned int KGLLib::versionMinor (  ) 

Definition at line 33 of file kgllib_version.cpp.

unsigned int KGLLib::versionRelease (  ) 

Definition at line 38 of file kgllib_version.cpp.

const char* KGLLib::versionString (  ) 

Definition at line 48 of file kgllib_version.cpp.


Variable Documentation

KGLLIB_EXPORT Renderer * KGLLib::renderer = 0

Pointer to the global renderer object.

Renderer object is guaranteed to be available after init() has been called

Definition at line 28 of file kgllib.cpp.

KGLLib

Skip menu "KGLLib"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KGLLib
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal