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
ARG_EXTERN 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
ARG_EXTERN 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
ARG_EXTERN int arglSetPixelZoom(ARGL_CONTEXT_SETTINGS_REF contextSettings, float zoom)
Set the current video image drawing scalefactor.
Definition: arg.c:263
ARG_EXTERN int arglGetFlipV(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Definition: arg.c:407
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
ARG_EXTERN 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
ARG_EXTERN void arglSetFlipV(ARGL_CONTEXT_SETTINGS_REF contextSettings, int flipV)
Definition: arg.c:382
ARG_EXTERN void arglCleanup(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Free memory used by arg associated with the specified context.
Definition: arg.c:207
ARG_EXTERN 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
struct _ARGL_CONTEXT_SETTINGS * ARGL_CONTEXT_SETTINGS_REF
Opaque type to hold ARGL settings for a given OpenGL context.
Definition: arg.h:115
ARG_EXTERN 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
ARG_EXTERN 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
ARG_EXTERN int arglGetFlipH(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Definition: arg.c:376
#define ARG_EXTERN
Definition: arg.h:89
ARG_EXTERN 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
ARG_EXTERN 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
ARG_EXTERN int arglGetRotate90(ARGL_CONTEXT_SETTINGS_REF contextSettings)
Find out whether ARGL is rotating all OpenGL drawing by 90 degrees.
Definition: arg.c:345
ARG_EXTERN void arglSetFlipH(ARGL_CONTEXT_SETTINGS_REF contextSettings, int flipH)
Definition: arg.c:351
ARG_EXTERN 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
ARG_EXTERN 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
ARG_EXTERN int arglGetPixelZoom(ARGL_CONTEXT_SETTINGS_REF contextSettings, float *zoom)
Retrieve the current video image drawing scalefactor.
Definition: arg.c:281
ARG_EXTERN 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
ARG_EXTERN void arglDispImage(ARGL_CONTEXT_SETTINGS_REF contextSettings, int32_t viewport[4])
Display an ARVideo image, by drawing it using OpenGL.
Definition: arg.c:224
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:341
Structure holding camera parameters, including image size, projection matrix and lens distortion para...
Definition: param.h:99