gsub_lite.c File Reference

#include <AR/gsub_lite.h>
#include <GL/gl.h>
#include <AR/config.h>
#include <AR/ar.h>
#include <AR/param.h>
#include <stdio.h>
#include <string.h>
#include <GL/glu.h>
Include dependency graph for gsub_lite.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ARGL_CONTEXT_SETTINGS

Defines

#define GL_ABGR_EXT   0x8000
#define GL_BGR   0x80E0
#define GL_BGRA   0x80E1
#define GL_CLAMP_TO_EDGE   0x812F
#define GL_MAX_RECTANGLE_TEXTURE_SIZE   0x84F8
#define GL_PROXY_TEXTURE_RECTANGLE   0x84F7
#define GL_TEXTURE_RECTANGLE   0x84F5
#define GL_UNSIGNED_INT_8_8_8_8   0x8035
#define GL_UNSIGNED_INT_8_8_8_8_REV   0x8367
#define GL_UNSIGNED_SHORT_8_8_APPLE   0x85BA
#define GL_UNSIGNED_SHORT_8_8_MESA   0x85BA
#define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB
#define GL_UNSIGNED_SHORT_8_8_REV_MESA   0x85BB
#define GL_YCBCR_422_APPLE   0x85B9
#define GL_YCBCR_MESA   0x8757

Typedefs

typedef struct
_ARGL_CONTEXT_SETTINGS 
ARGL_CONTEXT_SETTINGS

Functions

void arglCameraFrustum (const ARParam *cparam, const double focalmin, const double focalmax, GLdouble m_projection[16])
void arglCameraFrustumRH (const ARParam *cparam, const double focalmin, const double focalmax, GLdouble m_projection[16])
void arglCameraView (const double para[3][4], GLdouble m_modelview[16], const double scale)
void arglCameraViewRH (const double para[3][4], GLdouble m_modelview[16], const double scale)
void arglCleanup (ARGL_CONTEXT_SETTINGS_REF contextSettings)
static int arglCleanupTexPow2 (ARGL_CONTEXT_SETTINGS_REF contextSettings)
static int arglCleanupTexRectangle (ARGL_CONTEXT_SETTINGS_REF contextSettings)
void arglDispImage (ARUint8 *image, const ARParam *cparam, const double zoom, ARGL_CONTEXT_SETTINGS_REF contextSettings)
void arglDispImageStateful (ARUint8 *image, const ARParam *cparam, const double zoom, ARGL_CONTEXT_SETTINGS_REF contextSettings)
static void arglDispImageTexPow2 (ARUint8 *image, const ARParam *cparam, const float zoom, ARGL_CONTEXT_SETTINGS_REF contextSettings, const int texmapScaleFactor)
static int arglDispImageTexPow2CapabilitiesCheck (const ARParam *cparam, ARGL_CONTEXT_SETTINGS_REF contextSettings)
static void arglDispImageTexRectangle (ARUint8 *image, const ARParam *cparam, const float zoom, ARGL_CONTEXT_SETTINGS_REF contextSettings, const int texmapScaleFactor)
static int arglDispImageTexRectangleCapabilitiesCheck (const ARParam *cparam, ARGL_CONTEXT_SETTINGS_REF contextSettings)
int arglDistortionCompensationGet (ARGL_CONTEXT_SETTINGS_REF contextSettings, int *enable)
int arglDistortionCompensationSet (ARGL_CONTEXT_SETTINGS_REF contextSettings, int enable)
int arglDrawModeGet (ARGL_CONTEXT_SETTINGS_REF contextSettings)
void arglDrawModeSet (ARGL_CONTEXT_SETTINGS_REF contextSettings, const int mode)
static int arglGLCapabilityCheck (const unsigned short minVersion, const unsigned char *extension)
GLboolean arglGluCheckExtension (const GLubyte *extName, const GLubyte *extString)
int arglPixelFormatGet (ARGL_CONTEXT_SETTINGS_REF contextSettings, AR_PIXEL_FORMAT *format, int *size)
int arglPixelFormatSet (ARGL_CONTEXT_SETTINGS_REF contextSettings, AR_PIXEL_FORMAT format)
ARGL_CONTEXT_SETTINGS_REF arglSetupForCurrentContext (void)
int arglTexmapModeGet (ARGL_CONTEXT_SETTINGS_REF contextSettings)
void arglTexmapModeSet (ARGL_CONTEXT_SETTINGS_REF contextSettings, const int mode)
int arglTexRectangleGet (ARGL_CONTEXT_SETTINGS_REF contextSettings)
void arglTexRectangleSet (ARGL_CONTEXT_SETTINGS_REF contextSettings, const int state)

Define Documentation

#define GL_ABGR_EXT   0x8000

Definition at line 99 of file gsub_lite.c.

#define GL_BGR   0x80E0

Definition at line 78 of file gsub_lite.c.

#define GL_BGRA   0x80E1

Definition at line 79 of file gsub_lite.c.

#define GL_CLAMP_TO_EDGE   0x812F

Definition at line 88 of file gsub_lite.c.

#define GL_MAX_RECTANGLE_TEXTURE_SIZE   0x84F8

Definition at line 112 of file gsub_lite.c.

#define GL_PROXY_TEXTURE_RECTANGLE   0x84F7

Definition at line 111 of file gsub_lite.c.

#define GL_TEXTURE_RECTANGLE   0x84F5

Definition at line 110 of file gsub_lite.c.

#define GL_UNSIGNED_INT_8_8_8_8   0x8035

Definition at line 82 of file gsub_lite.c.

#define GL_UNSIGNED_INT_8_8_8_8_REV   0x8367

Definition at line 83 of file gsub_lite.c.

#define GL_UNSIGNED_SHORT_8_8_APPLE   0x85BA

Definition at line 95 of file gsub_lite.c.

#define GL_UNSIGNED_SHORT_8_8_MESA   0x85BA

Definition at line 116 of file gsub_lite.c.

#define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB

Definition at line 96 of file gsub_lite.c.

#define GL_UNSIGNED_SHORT_8_8_REV_MESA   0x85BB

Definition at line 117 of file gsub_lite.c.

#define GL_YCBCR_422_APPLE   0x85B9

Definition at line 94 of file gsub_lite.c.

#define GL_YCBCR_MESA   0x8757

Definition at line 115 of file gsub_lite.c.


Typedef Documentation

Definition at line 148 of file gsub_lite.c.


Function Documentation

void arglCameraFrustum ( const ARParam cparam,
const double  focalmin,
const double  focalmax,
GLdouble  m_projection[16] 
)

Definition at line 649 of file gsub_lite.c.

void arglCameraFrustumRH ( const ARParam cparam,
const double  focalmin,
const double  focalmax,
GLdouble  m_projection[16] 
)

Definition at line 708 of file gsub_lite.c.

void arglCameraView ( const double  para[3][4],
GLdouble  m_modelview[16],
const double  scale 
)

Definition at line 767 of file gsub_lite.c.

void arglCameraViewRH ( const double  para[3][4],
GLdouble  m_modelview[16],
const double  scale 
)

Definition at line 792 of file gsub_lite.c.

void arglCleanup ( ARGL_CONTEXT_SETTINGS_REF  contextSettings  ) 

Definition at line 638 of file gsub_lite.c.

static int arglCleanupTexPow2 ( ARGL_CONTEXT_SETTINGS_REF  contextSettings  )  [static]

Definition at line 284 of file gsub_lite.c.

static int arglCleanupTexRectangle ( ARGL_CONTEXT_SETTINGS_REF  contextSettings  )  [static]

Definition at line 469 of file gsub_lite.c.

void arglDispImage ( ARUint8 image,
const ARParam cparam,
const double  zoom,
ARGL_CONTEXT_SETTINGS_REF  contextSettings 
)

Definition at line 817 of file gsub_lite.c.

void arglDispImageStateful ( ARUint8 image,
const ARParam cparam,
const double  zoom,
ARGL_CONTEXT_SETTINGS_REF  contextSettings 
)

Definition at line 878 of file gsub_lite.c.

static void arglDispImageTexPow2 ( ARUint8 image,
const ARParam cparam,
const float  zoom,
ARGL_CONTEXT_SETTINGS_REF  contextSettings,
const int  texmapScaleFactor 
) [static]

Definition at line 298 of file gsub_lite.c.

static int arglDispImageTexPow2CapabilitiesCheck ( const ARParam cparam,
ARGL_CONTEXT_SETTINGS_REF  contextSettings 
) [static]

Definition at line 242 of file gsub_lite.c.

static void arglDispImageTexRectangle ( ARUint8 image,
const ARParam cparam,
const float  zoom,
ARGL_CONTEXT_SETTINGS_REF  contextSettings,
const int  texmapScaleFactor 
) [static]

Definition at line 483 of file gsub_lite.c.

static int arglDispImageTexRectangleCapabilitiesCheck ( const ARParam cparam,
ARGL_CONTEXT_SETTINGS_REF  contextSettings 
) [static]

Definition at line 444 of file gsub_lite.c.

int arglDistortionCompensationGet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings,
int *  enable 
)

Definition at line 919 of file gsub_lite.c.

int arglDistortionCompensationSet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings,
int  enable 
)

Definition at line 911 of file gsub_lite.c.

int arglDrawModeGet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings  ) 

Definition at line 1104 of file gsub_lite.c.

void arglDrawModeSet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings,
const int  mode 
)

Definition at line 1098 of file gsub_lite.c.

static int arglGLCapabilityCheck ( const unsigned short  minVersion,
const unsigned char *  extension 
) [static]

Definition at line 213 of file gsub_lite.c.

GLboolean arglGluCheckExtension ( const GLubyte *  extName,
const GLubyte *  extString 
)

Definition at line 178 of file gsub_lite.c.

int arglPixelFormatGet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings,
AR_PIXEL_FORMAT format,
int *  size 
)

Definition at line 1045 of file gsub_lite.c.

int arglPixelFormatSet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings,
AR_PIXEL_FORMAT  format 
)

Definition at line 926 of file gsub_lite.c.

ARGL_CONTEXT_SETTINGS_REF arglSetupForCurrentContext ( void   ) 

Definition at line 621 of file gsub_lite.c.

int arglTexmapModeGet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings  ) 

Definition at line 1116 of file gsub_lite.c.

void arglTexmapModeSet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings,
const int  mode 
)

Definition at line 1110 of file gsub_lite.c.

int arglTexRectangleGet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings  ) 

Definition at line 1128 of file gsub_lite.c.

void arglTexRectangleSet ( ARGL_CONTEXT_SETTINGS_REF  contextSettings,
const int  state 
)

Definition at line 1122 of file gsub_lite.c.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


artoolkit
Author(s): Gautier Dumonteil
autogenerated on Fri Jan 11 10:05:47 2013