Re-exports§
pub use gx::*;
Modules§
- gx
- Helper functions based on
<3ds/gpu/gx.h>. Bindgen doesn’t work on these function-like macros so we just reimplement them as#[inline]here.
Structs§
- C3D_
Attr Info - C3D_
BufCfg - C3D_
BufInfo - C3D_
FVec__ bindgen_ ty_ 1 - Vector access
- C3D_
FVec__ bindgen_ ty_ 2 - Quaternion access
- C3D_
FogLut - C3D_
Frame Buf - C3D_
GasLut - C3D_
Light Conf - C3D_
Light EnvConf - C3D_
Light Env_ t - C3D_
Light Lut - C3D_
Light LutDA - C3D_
Light LutInput Conf - C3D_
Light MatConf - C3D_
Light_ t - C3D_
Material - C3D_
MtxStack - C3D_
Proc Tex - C3D_
Proc TexColor Lut - C3D_
Proc Tex__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - C3D_
Proc Tex__ bindgen_ ty_ 2__ bindgen_ ty_ 1 - C3D_
Proc Tex__ bindgen_ ty_ 3__ bindgen_ ty_ 1 - C3D_
Proc Tex__ bindgen_ ty_ 4__ bindgen_ ty_ 1 - C3D_
Proc Tex__ bindgen_ ty_ 5__ bindgen_ ty_ 1 - C3D_
Proc Tex__ bindgen_ ty_ 6__ bindgen_ ty_ 1 - C3D_
Render Target_ tag - C3D_Tex
- C3D_
TexCube - C3D_
TexEnv - C3D_
TexEnv__ bindgen_ ty_ 1__ bindgen_ ty_ 1 - C3D_
TexInit Params - C3D_
Tex__ bindgen_ ty_ 2__ bindgen_ ty_ 1 - C3D_
Tex__ bindgen_ ty_ 3__ bindgen_ ty_ 1 - Tex3DS_
SubTexture - Subtexture
- Tex3DS_
Texture_ s - __
Bindgen Bitfield Unit
Constants§
- C3DF_
Light Env_ Dirty - C3DF_
Light Env_ IsCP_ Any - C3DF_
Light Env_ LCDirty - C3DF_
Light Env_ LutDirty All - C3DF_
Light Env_ MtlDirty - C3DF_
Light_ DADirty - C3DF_
Light_ Dirty - C3DF_
Light_ Enabled - C3DF_
Light_ MatDirty - C3DF_
Light_ SPDirty - C3D_
Alpha - C3D_
Aspect Ratio Bot - C3D_
Aspect Ratio Top - C3D_
Both - C3D_
CLEAR_ ALL - C3D_
CLEAR_ COLOR - C3D_
CLEAR_ DEPTH - C3D_
DEFAULT_ CMDBUF_ SIZE - C3D_
FRAME_ NONBLOCK - C3D_
FRAME_ SYNCDRAW - C3D_
FVUNIF_ COUNT - C3D_
IVUNIF_ COUNT - C3D_
MTXSTACK_ SIZE - C3D_
Proc Tex_ U - C3D_
Proc Tex_ UV - C3D_
Proc Tex_ V - C3D_RGB
- C3D_
UNSIGNED_ BYTE - C3D_
UNSIGNED_ SHORT - GPU_
INVERT_ SHADOW - GPU_
SHADOW_ ALPHA - GPU_
SHADOW_ PRIMARY - GPU_
SHADOW_ SECONDARY - M_TAU
Statics§
Functions§
- Attr
Info_ ⚠AddFixed - Attr
Info_ ⚠AddLoader - Attr
Info_ ⚠Init - BufInfo_
Add ⚠ - BufInfo_
Init ⚠ - C3D_
Alpha ⚠Blend - C3D_
Alpha ⚠Test - C3D_
Bind ⚠Program - C3D_
Blending ⚠Color - C3D_
Bool ⚠Unif Set - C3D_
Calc ⚠Color BufSize - C3D_
Calc ⚠Depth BufSize - C3D_
Color ⚠Logic Op - C3D_
Cull ⚠Face - C3D_
Depth ⚠Map - C3D_
Depth ⚠Test - C3D_
Dirty ⚠TexEnv - C3D_
Draw ⚠Arrays - C3D_
Draw ⚠Elements - C3D_
Early ⚠Depth Test - C3D_
FVUnif ⚠Mtx2x4 - C3D_
FVUnif ⚠Mtx3x4 - C3D_
FVUnif ⚠Mtx4x4 - C3D_
FVUnif ⚠MtxNx4 - C3D_
FVUnif ⚠Set - C3D_
FVUnif ⚠Write Ptr - C3D_
Fini ⚠ - C3D_
Fixed ⚠Attrib GetWrite Ptr - C3D_
Fixed ⚠Attrib Set - C3D_
FogColor ⚠ - C3D_
FogGas ⚠Mode - C3D_
FogLut ⚠Bind - C3D_
Frag ⚠OpMode - C3D_
Frag ⚠OpShadow - C3D_
Frame ⚠Begin - C3D_
Frame ⚠BufAttrib - C3D_
Frame ⚠BufClear - C3D_
Frame ⚠BufColor - C3D_
Frame ⚠BufDepth - C3D_
Frame ⚠BufTex - C3D_
Frame ⚠BufTransfer - C3D_
Frame ⚠Counter - C3D_
Frame ⚠Draw On - C3D_
Frame ⚠End - C3D_
Frame ⚠EndHook - C3D_
Frame ⚠Rate - C3D_
Frame ⚠Split - C3D_
Frame ⚠Sync - C3D_
GasAcc ⚠Max - C3D_
GasAttn ⚠ - C3D_
GasBegin ⚠Acc - C3D_
GasDeltaZ ⚠ - C3D_
GasLight ⚠Direction - C3D_
GasLight ⚠Planar - C3D_
GasLight ⚠View - C3D_
GasLut ⚠Bind - C3D_
GasLut ⚠Input - C3D_
GetAttr ⚠Info - C3D_
GetBuf ⚠Info - C3D_
GetCmd ⚠BufUsage - C3D_
GetDrawing ⚠Time - C3D_
GetFrame ⚠Buf - C3D_
GetProcessing ⚠Time - C3D_
GetTex ⚠Env - C3D_
IVUnif ⚠Set - C3D_
IVUnif ⚠Write Ptr - C3D_
ImmDraw ⚠Begin - C3D_
ImmDraw ⚠End - C3D_
ImmDraw ⚠Restart Prim - C3D_
ImmSend ⚠Attrib - C3D_
Init ⚠ - C3D_
Light ⚠Ambient - C3D_
Light ⚠Color - C3D_
Light ⚠Diffuse - C3D_
Light ⚠Dist Attn - C3D_
Light ⚠Dist Attn Enable - C3D_
Light ⚠Enable - C3D_
Light ⚠EnvAmbient - C3D_
Light ⚠EnvBind - C3D_
Light ⚠EnvBump Mode - C3D_
Light ⚠EnvBump NormalZ - Configures whether to use the z component of the normal map.
- C3D_
Light ⚠EnvBump Sel - C3D_
Light ⚠EnvClamp Highlights - C3D_
Light ⚠EnvFresnel - C3D_
Light ⚠EnvInit - C3D_
Light ⚠EnvLut - C3D_
Light ⚠EnvMaterial - C3D_
Light ⚠EnvShadow Mode - C3D_
Light ⚠EnvShadow Sel - C3D_
Light ⚠GeoFactor - C3D_
Light ⚠Init - C3D_
Light ⚠Position - C3D_
Light ⚠Shadow Enable - C3D_
Light ⚠Specular0 - C3D_
Light ⚠Specular1 - C3D_
Light ⚠Spot Dir - C3D_
Light ⚠Spot Enable - C3D_
Light ⚠Spot Lut - C3D_
Light ⚠TwoSide Diffuse - C3D_
Proc ⚠TexBind - C3D_
Proc ⚠TexClamp - C3D_
Proc ⚠TexColor LutBind - C3D_
Proc ⚠TexCombiner - C3D_
Proc ⚠TexFilter - C3D_
Proc ⚠TexInit - C3D_
Proc ⚠TexLod Bias - C3D_
Proc ⚠TexLut Bind - C3D_
Proc ⚠TexNoise Coefs - C3D_
Proc ⚠TexNoise Enable - C3D_
Proc ⚠TexShift - C3D_
Render ⚠Target Clear - C3D_
Render ⚠Target Create - C3D_
Render ⚠Target Create From Tex - C3D_
Render ⚠Target Delete - C3D_
Render ⚠Target Detach Output - C3D_
Render ⚠Target SetOutput - C3D_
SetAttr ⚠Info - C3D_
SetBuf ⚠Info - C3D_
SetFrame ⚠Buf - C3D_
SetScissor ⚠ - C3D_
SetTex ⚠Env - C3D_
SetViewport ⚠ - C3D_
Stencil ⚠Op - C3D_
Stencil ⚠Test - C3D_
Sync ⚠Display Transfer - C3D_
Sync ⚠Memory Fill - C3D_
Sync ⚠Texture Copy - C3D_
Tex2D ⚠GetImage Ptr - C3D_
TexBind ⚠ - C3D_
TexCalc ⚠Level Size - C3D_
TexCalc ⚠MaxLevel - C3D_
TexCalc ⚠Total Size - C3D_
TexCube ⚠GetImage Ptr - C3D_
TexDelete ⚠ - C3D_
TexEnv ⚠BufColor - C3D_
TexEnv ⚠BufUpdate - C3D_
TexEnv ⚠Color - C3D_
TexEnv ⚠Func - C3D_
TexEnv ⚠Init - C3D_
TexEnv ⚠OpAlpha - C3D_
TexEnv ⚠OpRgb - C3D_
TexEnv ⚠Scale - C3D_
TexEnv ⚠Src - C3D_
TexFlush ⚠ - C3D_
TexGenerate ⚠Mipmap - C3D_
TexGet ⚠Image Ptr - C3D_
TexGet ⚠Type - C3D_
TexInit ⚠ - C3D_
TexInit ⚠Cube - C3D_
TexInit ⚠Mipmap - C3D_
TexInit ⚠Shadow - C3D_
TexInit ⚠Shadow Cube - C3D_
TexInitVRAM ⚠ - C3D_
TexInit ⚠With Params - C3D_
TexLoad ⚠Image - C3D_
TexSet ⚠Filter - C3D_
TexSet ⚠Filter Mipmap - C3D_
TexSet ⚠LodBias - C3D_
TexSet ⚠Wrap - C3D_
TexShadow ⚠Params - C3D_
TexUpload ⚠ - C3D_
Update ⚠Uniforms - FVec3_
Add ⚠ - Add two FVec3s
- FVec3_
Cross ⚠ - Cross product of two FVec3s
- FVec3_
Cross ⚠Quat - Cross product of FVec3 and Quaternion
- FVec3_
Distance ⚠ - Distance between two 3D points
- FVec3_
Dot ⚠ - Dot product of two FVec3s
- FVec3_
Magnitude ⚠ - Magnitude of a FVec3
- FVec3_
Negate ⚠ - Negate a FVec3
- FVec3_
New ⚠ - Create a new FVec3
- FVec3_
Normalize ⚠ - Normalize a FVec3
- FVec3_
Scale ⚠ - Scale a FVec3
- FVec3_
Subtract ⚠ - Subtract two FVec3s
- FVec4_
Add ⚠ - Add two FVec4s
- FVec4_
Dot ⚠ - Dot product of two FVec4s
- FVec4_
Magnitude ⚠ - Magnitude of a FVec4
- FVec4_
Negate ⚠ - Negate a FVec4
- FVec4_
New ⚠ - Create a new FVec4
- FVec4_
Normalize ⚠ - Normalize a FVec4
- FVec4_
Persp ⚠Divide - Perspective divide
- FVec4_
Scale ⚠ - Scale a FVec4
- FVec4_
Subtract ⚠ - Subtract two FVec4s
- FogLut_
CalcZ ⚠ - FogLut_
Exp ⚠ - FogLut_
From ⚠Array - GasLut_
From ⚠Array - IVec_
Pack ⚠ - Light
LutDA_ ⚠Create - Light
Lut_ ⚠From Array - Light
Lut_ ⚠From Func - MtxStack_
Bind ⚠ - MtxStack_
Cur ⚠ - MtxStack_
Init ⚠ - MtxStack_
Pop ⚠ - MtxStack_
Push ⚠ - MtxStack_
Update ⚠ - Mtx_Add⚠
- Matrix addition
- Mtx_
Copy ⚠ - Copy a matrix
- Mtx_
Diagonal ⚠ - Creates a matrix with the diagonal using the given parameters.
- Mtx_
From ⚠Quat - Get 4x4 matrix equivalent to Quaternion
- Mtx_
Identity ⚠ - Identity matrix
- Mtx_
Inverse ⚠ - Inverse a matrix
- Mtx_
Look ⚠At - Look-At matrix, based on DirectX implementation
- Mtx_
Multiply ⚠ - Multiply two matrices
- Mtx_
MultiplyF ⚠Vec3 - Multiply 3x3 matrix by a FVec3
- Mtx_
MultiplyF ⚠Vec4 - Multiply 4x4 matrix by a FVec4
- Mtx_
MultiplyF ⚠VecH - Multiply 4x3 matrix by a FVec3
- Mtx_
Ortho ⚠ - Orthogonal projection
- Mtx_
Ortho ⚠Tilt - Orthogonal projection, tilted to account for the 3DS screen rotation
- Mtx_
Persp ⚠ - Perspective projection
- Mtx_
Persp ⚠Stereo - Stereo perspective projection
- Mtx_
Persp ⚠Stereo Tilt - Stereo perspective projection, tilted to account for the 3DS screen rotation
- Mtx_
Persp ⚠Tilt - Perspective projection, tilted to account for the 3DS screen rotation
- Mtx_
Rotate ⚠ - 3D Rotation
- Mtx_
RotateX ⚠ - 3D Rotation about the X axis
- Mtx_
RotateY ⚠ - 3D Rotation about the Y axis
- Mtx_
RotateZ ⚠ - 3D Rotation about the Z axis
- Mtx_
Scale ⚠ - 3D Scale
- Mtx_
Subtract ⚠ - Matrix subtraction
- Mtx_
Translate ⚠ - 3D translation
- Mtx_
Transpose ⚠ - Transposes the matrix. Row => Column, and vice versa.
- Mtx_
Zeros ⚠ - Zero matrix
- Proc
TexColor ⚠Lut_ Write - Proc
TexLut_ ⚠From Array - Quat_
Conjugate ⚠ - Quaternion conjugate
- Quat_
CrossF ⚠Vec3 - Cross product of Quaternion and FVec3
- Quat_
From ⚠Axis Angle - Quaternion, created from a given axis and angle in radians.
- Quat_
From ⚠Mtx - Get Quaternion equivalent to 4x4 matrix
- Quat_
From ⚠Pitch YawRoll - Converting Pitch, Yaw, and Roll to Quaternion equivalent
- Quat_
Identity ⚠ - Identity Quaternion
- Quat_
Inverse ⚠ - Quaternion inverse
- Quat_
Look ⚠At - Quaternion Look-At
- Quat_
Multiply ⚠ - Multiply two Quaternions
- Quat_
Pow ⚠ - Raise Quaternion to a power
- Quat_
Rotate ⚠ - 3D Rotation
- Quat_
RotateX ⚠ - 3D Rotation about the X axis
- Quat_
RotateY ⚠ - 3D Rotation about the Y axis
- Quat_
RotateZ ⚠ - 3D Rotation about the Z axis
- Tex3DS_
GetNum ⚠SubTextures - Get number of subtextures
- Tex3DS_
GetSub ⚠Texture - Get subtexture
- Tex3DS_
SubTexture ⚠Bottom Left - Get bottom-left texcoords
- Tex3DS_
SubTexture ⚠Bottom Right - Get bottom-right texcoords
- Tex3DS_
SubTexture ⚠Rotated - Check if subtexture is rotated
- Tex3DS_
SubTexture ⚠TopLeft - Get top-left texcoords
- Tex3DS_
SubTexture ⚠TopRight - Get top-right texcoords
- Tex3DS_
Texture ⚠Free - Free Tex3DS texture
- Tex3DS_
Texture ⚠Import - Import Tex3DS texture
- Tex3DS_
Texture ⚠Import Callback - Import Tex3DS texture
- Tex3DS_
Texture ⚠ImportFD - Import Tex3DS texture
- Tex3DS_
Texture ⚠Import Stdio - Import Tex3DS texture
- quadratic_
dist_ ⚠attn - spot_
step ⚠
Type Aliases§
- C3D_
Clear Bits - C3D_
FQuat - C3D_FQuat Float quaternion. See C3D_FVec.
- C3D_
IVec - C3D_
Light - C3D_
Light Env - C3D_
Light LutFunc - C3D_
Light LutFuncDA - C3D_
Proc TexLut - C3D_
Render Target - C3D_
TexEnv Mode - Tex3DS_
Texture - Texture
- __
int64_ t - _bindgen_
ty_ 39 - _bindgen_
ty_ 40 - _bindgen_
ty_ 41 - _bindgen_
ty_ 42 - _bindgen_
ty_ 43 - _bindgen_
ty_ 44 - _fpos_t
- _off_t
- wint_t
Unions§
- C3D_
DEPTHTYPE - C3D_
FVec - C3D_FVec Float vector
- C3D_Mtx
- C3D_Mtx Row-major 4x4 matrix
- C3D_
Proc Tex__ bindgen_ ty_ 1 - C3D_
Proc Tex__ bindgen_ ty_ 2 - C3D_
Proc Tex__ bindgen_ ty_ 3 - C3D_
Proc Tex__ bindgen_ ty_ 4 - C3D_
Proc Tex__ bindgen_ ty_ 5 - C3D_
Proc Tex__ bindgen_ ty_ 6 - C3D_
TexEnv__ bindgen_ ty_ 1 - C3D_
Tex__ bindgen_ ty_ 1 - C3D_
Tex__ bindgen_ ty_ 2 - C3D_
Tex__ bindgen_ ty_ 3