RetroArch
gpu_old.h
Go to the documentation of this file.
1 /* originally from from https://github.com/smealum/ctrulib */
2 
9 #pragma once
10 
11 #include <3ds/gpu/gpu.h>
12 
18 void GPU_Init(Handle *gsphandle) DEPRECATED;
19 
27 void GPU_Reset(u32* gxbuf, u32* gpuBuf, u32 gpuBufSize) DEPRECATED;
28 
37 void GPU_SetFloatUniform(GPU_SHADER_TYPE type, u32 startreg, u32* data, u32 numreg) DEPRECATED;
38 
49 void GPU_SetViewport(u32* depthBuffer, u32* colorBuffer, u32 x, u32 y, u32 w, u32 h) DEPRECATED;
50 
60 void GPU_SetScissorTest(GPU_SCISSORMODE mode, u32 left, u32 bottom, u32 right, u32 top) DEPRECATED;
61 
68 void GPU_DepthMap(float zScale, float zOffset) DEPRECATED;
69 
77 void GPU_SetAlphaTest(bool enable, GPU_TESTFUNC function, u8 ref) DEPRECATED;
78 
87 void GPU_SetDepthTestAndWriteMask(bool enable, GPU_TESTFUNC function, GPU_WRITEMASK writemask) DEPRECATED;
88 
98 void GPU_SetStencilTest(bool enable, GPU_TESTFUNC function, u8 ref, u8 input_mask, u8 write_mask) DEPRECATED;
99 
107 void GPU_SetStencilOp(GPU_STENCILOP sfail, GPU_STENCILOP dfail, GPU_STENCILOP pass) DEPRECATED;
108 
114 void GPU_SetFaceCulling(GPU_CULLMODE mode) DEPRECATED;
115 
124 void GPU_SetCombinerBufferWrite(u8 rgb_config, u8 alpha_config) DEPRECATED;
125 
137 void GPU_SetAlphaBlending(GPU_BLENDEQUATION colorEquation, GPU_BLENDEQUATION alphaEquation,
138  GPU_BLENDFACTOR colorSrc, GPU_BLENDFACTOR colorDst,
139  GPU_BLENDFACTOR alphaSrc, GPU_BLENDFACTOR alphaDst) DEPRECATED;
140 
147 void GPU_SetColorLogicOp(GPU_LOGICOP op) DEPRECATED;
148 
158 
172 void GPU_SetAttributeBuffers(u8 totalAttributes, u32* baseAddress, u64 attributeFormats, u16 attributeMask, u64 attributePermutation, u8 numBuffers, u32 bufferOffsets[], u64 bufferPermutations[], u8 bufferNumAttributes[]) DEPRECATED;
173 
179 void GPU_SetTextureEnable(GPU_TEXUNIT units) DEPRECATED;
180 
191 void GPU_SetTexture(GPU_TEXUNIT unit, u32* data, u16 width, u16 height, u32 param, GPU_TEXCOLOR colorType) DEPRECATED;
192 
199 void GPU_SetTextureBorderColor(GPU_TEXUNIT unit,u32 borderColor) DEPRECATED;
200 
213 void GPU_SetTexEnv(u8 id, u16 rgbSources, u16 alphaSources, u16 rgbOperands, u16 alphaOperands, GPU_COMBINEFUNC rgbCombine, GPU_COMBINEFUNC alphaCombine, u32 constantColor) DEPRECATED;
214 
222 void GPU_DrawArray(GPU_Primitive_t primitive, u32 first, u32 count) DEPRECATED;
223 
231 void GPU_DrawElements(GPU_Primitive_t primitive, u32* indexArray, u32 n) DEPRECATED;
232 
238 
239 void GPU_Finalize(void) DEPRECATED;
void GPU_Init(Handle *gsphandle) DEPRECATED
Initializes the GPU.
Definition: gpu_old.c:16
const GLint * first
Definition: glext.h:6478
GLenum GLint ref
Definition: glext.h:6668
GLenum mode
Definition: glext.h:6857
set set set set set set set macro pixldst1 op
Definition: pixman-arm-neon-asm.h:54
void GPU_SetAlphaBlending(GPU_BLENDEQUATION colorEquation, GPU_BLENDEQUATION alphaEquation, GPU_BLENDFACTOR colorSrc, GPU_BLENDFACTOR colorDst, GPU_BLENDFACTOR alphaSrc, GPU_BLENDFACTOR alphaDst) DEPRECATED
Sets the alpha blending parameters.
Definition: gpu_old.c:119
void GPU_DrawElements(GPU_Primitive_t primitive, u32 *indexArray, u32 n) DEPRECATED
Draws vertex elements.
Definition: gpu_old.c:280
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
GLfloat units
Definition: glext.h:12634
void GPU_Reset(u32 *gxbuf, u32 *gpuBuf, u32 gpuBufSize) DEPRECATED
Resets the GPU.
Definition: gpu_old.c:23
GLboolean enable
Definition: glext.h:12027
void GPU_FinishDrawing() DEPRECATED
Finishes drawing.
Definition: gpu_old.c:303
GLint GLint bottom
Definition: glext.h:8393
void GPU_SetAttributeBuffers(u8 totalAttributes, u32 *baseAddress, u64 attributeFormats, u16 attributeMask, u64 attributePermutation, u8 numBuffers, u32 bufferOffsets[], u64 bufferPermutations[], u8 bufferNumAttributes[]) DEPRECATED
Sets the VBO attribute buffers.
Definition: gpu_old.c:191
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:11766
void GPU_SetBlendingColor(u8 r, u8 g, u8 b, u8 a) DEPRECATED
Sets the blending color.
Definition: gpu_old.c:133
void GPU_SetColorLogicOp(GPU_LOGICOP op) DEPRECATED
Sets the color logic operator.
Definition: gpu_old.c:127
Definition: ibxm.h:9
GLdouble GLdouble right
Definition: glext.h:11766
void GPU_SetTexEnv(u8 id, u16 rgbSources, u16 alphaSources, u16 rgbOperands, u16 alphaOperands, GPU_COMBINEFUNC rgbCombine, GPU_COMBINEFUNC alphaCombine, u32 constantColor) DEPRECATED
Sets the parameters of a texture combiner.
Definition: gpu_old.c:244
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
GLuint GLuint GLsizei count
Definition: glext.h:6292
GLfloat param
Definition: glext.h:6480
GLenum type
Definition: glext.h:6233
void GPU_SetAlphaTest(bool enable, GPU_TESTFUNC function, u8 ref) DEPRECATED
Sets the alpha test parameters.
Definition: gpu_old.c:99
void GPU_SetScissorTest(GPU_SCISSORMODE mode, u32 left, u32 bottom, u32 right, u32 top) DEPRECATED
Sets the current scissor test mode.
Definition: gpu_old.c:82
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
void GPU_Finalize(void) DEPRECATED
Definition: gpu_old.c:311
void GPU_SetFloatUniform(GPU_SHADER_TYPE type, u32 startreg, u32 *data, u32 numreg) DEPRECATED
Sets a shader float uniform.
Definition: gpu_old.c:28
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
void GPU_DrawArray(GPU_Primitive_t primitive, u32 first, u32 count) DEPRECATED
Draws an array of vertex data.
Definition: gpu_old.c:259
void GPU_SetCombinerBufferWrite(u8 rgb_config, u8 alpha_config) DEPRECATED
Sets the combiner buffer write parameters.
Definition: gpu_old.c:237
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
void GPU_SetTexture(GPU_TEXUNIT unit, u32 *data, u16 width, u16 height, u32 param, GPU_TEXCOLOR colorType) DEPRECATED
Sets the texture data of a texture unit.
Definition: gpu_old.c:144
void GPU_SetFaceCulling(GPU_CULLMODE mode) DEPRECATED
Sets the face culling mode.
Definition: gpu_old.c:232
void GPU_SetTextureEnable(GPU_TEXUNIT units) DEPRECATED
Sets the enabled texture units.
Definition: gpu_old.c:138
uint64_t u64
64bit unsigned integer
Definition: gctypes.h:20
GLboolean GLboolean g
Definition: glext.h:6844
GLint GLint GLsizei width
Definition: glext.h:6293
void GPU_SetStencilTest(bool enable, GPU_TESTFUNC function, u8 ref, u8 input_mask, u8 write_mask) DEPRECATED
Sets the stencil test parameters.
Definition: gpu_old.c:104
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6742
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
GLint left
Definition: glext.h:8393
void GPU_SetViewport(u32 *depthBuffer, u32 *colorBuffer, u32 x, u32 y, u32 w, u32 h) DEPRECATED
Sets the viewport.
Definition: gpu_old.c:40
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
#define DEPRECATED
Definition: compat-1.3.h:696
GLdouble n
Definition: glext.h:8396
GLenum sfail
Definition: glext.h:6667
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844
void GPU_SetDepthTestAndWriteMask(bool enable, GPU_TESTFUNC function, GPU_WRITEMASK writemask) DEPRECATED
Sets the depth test parameters and pixel write mask.
Definition: gpu_old.c:114
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293
void GPU_DepthMap(float zScale, float zOffset) DEPRECATED
Sets the depth map.
Definition: gpu_old.c:92
void GPU_SetStencilOp(GPU_STENCILOP sfail, GPU_STENCILOP dfail, GPU_STENCILOP pass) DEPRECATED
Sets the stencil test operators.
Definition: gpu_old.c:109
void GPU_SetTextureBorderColor(GPU_TEXUNIT unit, u32 borderColor) DEPRECATED
Sets the border color of a texture unit.
Definition: gpu_old.c:171