83# define ARG_EXTERN __declspec(dllexport)
85# define ARG_EXTERN __declspec(dllimport)
433#define arglPixelBufferDataUpload(contextSettings,bufDataPtr) arglPixelBufferDataUploadBiPlanar(contextSettings,bufDataPtr,NULL)
artoolkitX core routines.
unsigned char ARUint8
Definition ar.h:92
void arglSetFlipV(ARGL_CONTEXT_SETTINGS_REF contextSettings, int flipV)
Definition arg.c:382
int arglPixelBufferSizeGet(ARGL_CONTEXT_SETTINGS_REF contextSettings, int *bufWidth, int *bufHeight)
Query the size of pixel data buffers expected by arglPixelBufferDataUpload().
Definition arg.c:429
int arglDistortionCompensationGet(ARGL_CONTEXT_SETTINGS_REF contextSettings, int *enable)
Enquire as to the enable state of camera lens distortion compensation in arglDispImage.
Definition arg.c:256
int arglPixelBufferDataUploadBiPlanar(ARGL_CONTEXT_SETTINGS_REF contextSettings, ARUint8 *bufDataPtr0, ARUint8 *bufDataPtr1)
Upload a buffer of pixel data to an OpenGL texture for later use by arglDispImage().
Definition arg.c:445
int arglPixelFormatGet(ARGL_CONTEXT_SETTINGS_REF contextSettings, AR_PIXEL_FORMAT *format, int *size)
Get the format of pixel data in which arglDispImage*() is expecting data to be passed.
Definition arg.c:304
void arglSetFlipH(ARGL_CONTEXT_SETTINGS_REF contextSettings, int flipH)
Definition arg.c:351
void arglSetRotate90(ARGL_CONTEXT_SETTINGS_REF contextSettings, int rotate90)
Set or unset a 90 degree rotation in all OpenGL drawing performed by ARGL.
Definition arg.c:320
int arglSetPixelZoom(ARGL_CONTEXT_SETTINGS_REF contextSettings, float zoom)
Set the current video image drawing scalefactor.
Definition arg.c:263
int arglPixelBufferSizeSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, int bufWidth, int bufHeight)
Specify a desired pixel buffer size larger than the camera image size.
Definition arg.c:413
int arglSetupDebugMode(ARGL_CONTEXT_SETTINGS_REF contextSettings, ARHandle *arHandle)
Provide an ARHandle structure from which to extract information about debug mode.
Definition arg.c:201
int arglGetPixelZoom(ARGL_CONTEXT_SETTINGS_REF contextSettings, float *zoom)
Retrieve the current video image drawing scalefactor.
Definition arg.c:281
void arglCleanup(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Free memory used by arg associated with the specified context.
Definition arg.c:207
int arglGLCapabilityCheck(ARGL_CONTEXT_SETTINGS_REF contextSettings, const uint16_t minVersion, const unsigned char *extension)
Checks for the presence of an OpenGL capability by version or extension.
Definition arg.c:461
int arglDistortionCompensationSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, int enable)
Set compensation for camera lens distortion in arglDispImage to off or on.
Definition arg.c:239
int arglPixelFormatSet(ARGL_CONTEXT_SETTINGS_REF contextSettings, AR_PIXEL_FORMAT format)
Set the format of pixel data which will be passed to arglDispImage*().
Definition arg.c:288
int arglGetRotate90(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Find out whether ARGL is rotating all OpenGL drawing by 90 degrees.
Definition arg.c:345
int arglGetFlipV(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Definition arg.c:407
int arglGetFlipH(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Definition arg.c:376
ARGL_CONTEXT_SETTINGS_REF arglSetupForCurrentContext(const ARParam *cparam, AR_PIXEL_FORMAT pixelFormat)
Initialise the arg library for the current OpenGL context.
Definition arg.c:146
void arglDispImage(ARGL_CONTEXT_SETTINGS_REF contextSettings, int32_t viewport[4])
Display an ARVideo image, by drawing it using OpenGL.
Definition arg.c:224
ARG_API
Underlying rendering API being used in implementation.
Definition arg.h:120
@ ARG_API_GL
OpenGL 1.5 or later.
Definition arg.h:122
@ ARG_API_None
No API currently selected.
Definition arg.h:121
@ ARG_API_GLES2
OpenGL ES 2.0 or later.
Definition arg.h:124
@ ARG_API_GL3
OpenGL 3.1 or later.
Definition arg.h:123
#define ARG_EXTERN
Definition arg.h:89
struct _ARGL_CONTEXT_SETTINGS * ARGL_CONTEXT_SETTINGS_REF
Opaque type to hold ARGL settings for a given OpenGL context.
Definition arg.h:115
Definition arg_private.h:48
int flipH
Definition arg_private.h:56
int flipV
Definition arg_private.h:57
float zoom
Definition arg_private.h:53
int rotate90
Definition arg_private.h:55
Structure holding state of an instance of the square marker tracker.
Definition ar.h:342
Structure holding camera parameters, including image size, projection matrix and lens distortion para...
Definition param.h:99