[ Maverik Level 2 functions ]

#

mav_gfx

mav_gfxClipPlaneSet, mav_gfxClipPlanesSet, mav_gfxClipPlaneEnable, mav_gfxClipPlaneDisable, mav_gfxClearC, mav_gfxClearZ, mav_gfxClearA, mav_gfxClearCZ, mav_gfxBackgroundColourSet, mav_gfxDepthTestSet, mav_gfxDepthMaskSet, mav_gfxNormalizeSet, mav_gfxBackfaceCullSet, mav_gfxBackfaceCullGet, mav_gfxBufferReadSet, mav_gfxPixelRead, mav_gfxPixelReadUByte, mav_gfxPixelDraw, mav_gfxViewPortSet, mav_gfxRasterPosSet, mav_gfxRasterPos2DSet, mav_gfxLineWidthSet, mav_gfxLineWidthGet, mav_gfxLineStippleSet, mav_gfxFogSet, mav_gfxVisualInfoGet, mav_gfxPolygonModeSet, mav_gfxMultiSampleSet, mav_gfxFinish, mav_gfxFlush, mav_gfxMatrixMode, mav_gfxMatrixLoad, mav_gfxMatrixPush, mav_gfxMatrixPop, mav_gfxMatrixMult, mav_gfxMatrixTranslate, mav_gfxMatrixScale, mav_gfxPerspectiveSet, mav_gfxOrthogonalSet, mav_gfxMatrixGet, mav_gfxPolygonBegin, mav_gfxPolygonEnd, mav_gfxTrianglesBegin, mav_gfxTrianglesEnd, mav_gfxStripQBegin, mav_gfxStripQEnd, mav_gfxStripTBegin, mav_gfxStripTEnd, mav_gfxLineClosedBegin, mav_gfxLineClosedEnd, mav_gfxLineBegin, mav_gfxLineEnd, mav_gfxMeshTBegin, mav_gfxMeshTEnd, mav_gfxVertex, mav_gfxNormal, mav_gfxTexCoord, mav_gfxColouringModeUse, mav_gfxColourSet, mav_gfxColourUse, mav_gfxMaterialSet, mav_gfxMaterialUse, mav_gfxTextureSet, mav_gfxTextureUse, mav_gfxLightingModelSet, mav_gfxLightingModelUse, mav_gfxLightSet, mav_gfxLightUse, mav_gfxLightPos, mav_gfxBlendSet, mav_gfxTextureEnv1Set, mav_gfxTextureEnv2Set, mav_gfxAccumSet, mav_gfxListsNew, mav_gfxListNew, mav_gfxListEnd, mav_gfxListExec, mav_gfxListsExec, mav_gfxListsDelete, mav_gfx3DfxModeSet, mav_gfx3DfxBoardSet

## Summary

Wrapper functions to graphics system.

## Syntax

void mav_gfxClipPlaneSet(int id, MAV_clipPlane cp);

void mav_gfxClipPlanesSet(MAV_clipPlanes *cp);

void mav_gfxClipPlaneEnable(int id);

void mav_gfxClipPlaneDisable(int id);

void mav_gfxClearC(void);

void mav_gfxClearZ(void);

void mav_gfxClearA(void);

void mav_gfxClearCZ(void);

void mav_gfxBackgroundColourSet(float r, float g, float b);

void mav_gfxDepthTestSet(int v);

void mav_gfxDepthMaskSet(int v);

void mav_gfxNormalizeSet(int v);

void mav_gfxBackfaceCullSet(int v);

int mav_gfxBackfaceCullGet(void);

void mav_gfxBufferReadSet(int buf);

void mav_gfxPixelRead(int x, int y, int w, int h, unsigned long *d);

void mav_gfxPixelReadUByte(int x, int y, int w, int h, unsigned char *d);

void mav_gfxPixelDraw(int w, int h, float *v);

void mav_gfxViewPortSet(int x, int y, int w, int h);

void mav_gfxRasterPosSet(MAV_vector v);

void mav_gfxRasterPos2DSet(float x, float y);

void mav_gfxLineWidthSet(float wd);

float mav_gfxLineWidthGet(void);

void mav_gfxLineStippleSet(int factor, unsigned short pattern);

void mav_gfxFogSet(int type, float data1, float data2, float r, float g, float b);

int mav_gfxVisualInfoGet(int *r, int *g, int *b, int *a, int *d, int *db, int *ar, int *ag, int *ab, int *aa, int *sb, int *msb);

void mav_gfxPolygonModeSet(int v);

void mav_gfxMultiSampleSet(int v);

void mav_gfxFinish(void);

void mav_gfxFlush(void);

void mav_gfxMatrixMode(int mode);

void mav_gfxMatrixLoad(MAV_matrix m);

void mav_gfxMatrixPush(void);

void mav_gfxMatrixPop(void);

void mav_gfxMatrixMult(MAV_matrix m);

void mav_gfxMatrixTranslate(MAV_vector v);

void mav_gfxMatrixScale(float x, float y, float z);

void mav_gfxPerspectiveSet(float ncp, float fcp, float fov, float aspect);

void mav_gfxOrthogonalSet(float left, float right, float top, float bottom, float nr, float fr);

MAV_matrix *mav_gfxMatrixGet(void);

void mav_gfxPolygonBegin(void);

void mav_gfxPolygonEnd(void);

void mav_gfxTrianglesBegin(void);

void mav_gfxTrianglesEnd(void);

void mav_gfxStripQBegin(void);

void mav_gfxStripQEnd(void);

void mav_gfxStripTBegin(void);

void mav_gfxStripTEnd(void);

void mav_gfxLineClosedBegin(void);

void mav_gfxLineClosedEnd(void);

void mav_gfxLineBegin(void);

void mav_gfxLineEnd(void);

void mav_gfxMeshTBegin(void);

void mav_gfxMeshTEnd(void);

void mav_gfxVertex(MAV_vector v);

void mav_gfxNormal(MAV_vector n);

void mav_gfxTexCoord(MAV_texCoord t);

void mav_gfxColouringModeUse(MAV_palette *p, int mode);

void mav_gfxColourSet(MAV_colour col);

void mav_gfxColourUse(MAV_colour col);

void mav_gfxMaterialSet(MAV_material mat);

void mav_gfxMaterialUse(MAV_material mat);

void mav_gfxTextureSet(MAV_texture *tex, MAV_texEnvFn pTexEnv);

void mav_gfxTextureUse(MAV_texture tex, MAV_texEnvFn pTexEnv);

void mav_gfxLightingModelSet(MAV_lightingModel lm);

void mav_gfxLightingModelUse(MAV_lightingModel lm);

void mav_gfxLightSet(MAV_light l);

void mav_gfxLightUse(MAV_light l);

void mav_gfxLightPos(MAV_light l);

void mav_gfxBlendSet(int v);

void mav_gfxTextureEnv1Set(int v);

void mav_gfxTextureEnv2Set(int v);

void mav_gfxAccumSet(int mode, float val);

int mav_gfxListsNew(int range);

void mav_gfxListNew(int list, int mode);

void mav_gfxListEnd(void);

void mav_gfxListExec(int list);

void mav_gfxListsExec(int n, int *lists);

void mav_gfxListsDelete(int list, int range);

void mav_gfx3DfxModeSet(int fullscreen);

int mav_gfx3DfxBoardSet(int bd);

## Description

These functions are wrappers to the corresponding graphics system (OpenGL, IrisGL or Direct3D) functions.

Back to the index page.