mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-28 00:39:30 +00:00
Updated all the libs, added citro3d, added ctr.swkbd (WIP, untested)
This commit is contained in:
parent
68a44645f7
commit
49c87e5526
97 changed files with 7341 additions and 944 deletions
23
libs/citro3d/include/c3d/mtxstack.h
Normal file
23
libs/citro3d/include/c3d/mtxstack.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
#include "maths.h"
|
||||
#define C3D_MTXSTACK_SIZE 8
|
||||
|
||||
typedef struct
|
||||
{
|
||||
C3D_Mtx m[C3D_MTXSTACK_SIZE];
|
||||
int pos;
|
||||
u8 unifType, unifPos, unifLen;
|
||||
bool isDirty;
|
||||
} C3D_MtxStack;
|
||||
|
||||
static inline C3D_Mtx* MtxStack_Cur(C3D_MtxStack* stk)
|
||||
{
|
||||
stk->isDirty = true;
|
||||
return &stk->m[stk->pos];
|
||||
}
|
||||
|
||||
void MtxStack_Init(C3D_MtxStack* stk);
|
||||
void MtxStack_Bind(C3D_MtxStack* stk, GPU_SHADER_TYPE unifType, int unifPos, int unifLen);
|
||||
C3D_Mtx* MtxStack_Push(C3D_MtxStack* stk);
|
||||
C3D_Mtx* MtxStack_Pop(C3D_MtxStack* stk);
|
||||
void MtxStack_Update(C3D_MtxStack* stk);
|
||||
Loading…
Add table
Add a link
Reference in a new issue