LibXenon
Bare-metal Xbox 360 homebrew library
|
#include <xetypes.h>
Go to the source code of this file.
Data Structures | |
struct | XenosLock |
struct | XenosShader |
struct | XenosShaderHeader |
struct | XenosShaderData |
struct | XenosShaderVertex |
struct | XenosVBFElement |
struct | XenosVBFFormat |
struct | XenosSurface |
struct | XenosVertexBuffer |
struct | XenosIndexBuffer |
struct | XenosDevice |
Functions | |
void | Xe_Init (struct XenosDevice *xe) |
void | __attribute__ ((noreturn)) Xe_Fatal(struct XenosDevice *xe |
void const char void | Xe_SetRenderTarget (struct XenosDevice *xe, struct XenosSurface *rt) |
void | Xe_Resolve (struct XenosDevice *xe) |
void | Xe_ResolveInto (struct XenosDevice *xe, struct XenosSurface *surface, int source, int clear) |
void | Xe_Clear (struct XenosDevice *xe, int flags) |
struct XenosSurface * | Xe_GetFramebufferSurface (struct XenosDevice *xe) |
void | Xe_SetFrameBufferSurface (struct XenosDevice *xe, struct XenosSurface *fb) |
void | Xe_Execute (struct XenosDevice *xe) |
void | Xe_Sync (struct XenosDevice *xe) |
void | Xe_SetClearColor (struct XenosDevice *xe, u32 clearcolor) |
void | Xe_DirtyAluConstant (struct XenosDevice *xe, int base, int len) |
void | Xe_DirtyFetch (struct XenosDevice *xe, int base, int len) |
struct XenosShader * | Xe_LoadShader (struct XenosDevice *xe, const char *filename) |
struct XenosShader * | Xe_LoadShaderFromMemory (struct XenosDevice *xe, void *shader) |
void | Xe_InstantiateShader (struct XenosDevice *xe, struct XenosShader *sh, unsigned int index) |
int | Xe_GetShaderLength (struct XenosDevice *xe, void *sh) |
void | Xe_ShaderApplyVFetchPatches (struct XenosDevice *xe, struct XenosShader *sh, unsigned int index, const struct XenosVBFFormat *fmt) |
int | Xe_VBFCalcStride (struct XenosDevice *xe, const struct XenosVBFFormat *fmt) |
int | Xe_VBFCalcSize (struct XenosDevice *xe, const struct XenosVBFElement *fmt) |
void | Xe_SetZFunc (struct XenosDevice *xe, int z_func) |
void | Xe_SetZWrite (struct XenosDevice *xe, int zw) |
void | Xe_SetZEnable (struct XenosDevice *xe, int zw) |
void | Xe_SetFillMode (struct XenosDevice *xe, int front, int back) |
void | Xe_SetBlendControl (struct XenosDevice *xe, int col_src, int col_op, int col_dst, int alpha_src, int alpha_op, int alpha_dst) |
void | Xe_SetSrcBlend (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetDestBlend (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetBlendOp (struct XenosDevice *xe, unsigned int blendop) |
void | Xe_SetSrcBlendAlpha (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetDestBlendAlpha (struct XenosDevice *xe, unsigned int blend) |
void | Xe_SetBlendOpAlpha (struct XenosDevice *xe, unsigned int blendop) |
void | Xe_SetCullMode (struct XenosDevice *xe, unsigned int cullmode) |
void | Xe_SetAlphaTestEnable (struct XenosDevice *xe, int enable) |
void | Xe_SetAlphaFunc (struct XenosDevice *xe, unsigned int func) |
void | Xe_SetAlphaRef (struct XenosDevice *xe, float alpharef) |
void | Xe_SetScissor (struct XenosDevice *xe, int enable, int left, int top, int right, int bottom) |
void | Xe_SetStencilEnable (struct XenosDevice *xe, unsigned int enable) |
void | Xe_SetStencilFunc (struct XenosDevice *xe, int bfff, unsigned int func) |
void | Xe_SetStencilOp (struct XenosDevice *xe, int bfff, int fail, int zfail, int pass) |
void | Xe_SetStencilRef (struct XenosDevice *xe, int bfff, int ref) |
void | Xe_SetStencilMask (struct XenosDevice *xe, int bfff, int mask) |
void | Xe_SetStencilWriteMask (struct XenosDevice *xe, int bfff, int writemask) |
void | Xe_SetClipPlaneEnables (struct XenosDevice *xe, int enables) |
void | Xe_SetClipPlane (struct XenosDevice *xe, int idx, float *plane) |
void | Xe_InvalidateState (struct XenosDevice *xe) |
void | Xe_SetShader (struct XenosDevice *xe, int type, struct XenosShader *sh, int instance) |
void | Xe_SetTexture (struct XenosDevice *xe, int index, struct XenosSurface *tex) |
struct XenosVertexBuffer * | Xe_VBPoolAlloc (struct XenosDevice *xe, int size) |
void | Xe_VBPoolAdd (struct XenosDevice *xe, struct XenosVertexBuffer *vb) |
void | Xe_VBReclaim (struct XenosDevice *xe) |
void | Xe_VBBegin (struct XenosDevice *xe, int pitch) |
void | Xe_VBPut (struct XenosDevice *xe, void *data, int len) |
struct XenosVertexBuffer * | Xe_VBEnd (struct XenosDevice *xe) |
void | Xe_Draw (struct XenosDevice *xe, struct XenosVertexBuffer *vb, struct XenosIndexBuffer *ib) |
void | Xe_SetIndices (struct XenosDevice *de, struct XenosIndexBuffer *ib) |
void | Xe_DrawIndexedPrimitive (struct XenosDevice *xe, int type, int base_index, int min_index, int num_vertices, int start_index, int primitive_count) |
void | Xe_DrawPrimitive (struct XenosDevice *xe, int type, int start, int primitive_count) |
void | Xe_SetStreamSource (struct XenosDevice *xe, int index, struct XenosVertexBuffer *vb, int offset, int stride) |
struct XenosIndexBuffer * | Xe_CreateIndexBuffer (struct XenosDevice *xe, int length, int format) |
void | Xe_DestroyIndexBuffer (struct XenosDevice *xe, struct XenosIndexBuffer *ib) |
struct XenosVertexBuffer * | Xe_CreateVertexBuffer (struct XenosDevice *xe, int length) |
void | Xe_DestroyVertexBuffer (struct XenosDevice *xe, struct XenosVertexBuffer *vb) |
void * | Xe_VB_Lock (struct XenosDevice *xe, struct XenosVertexBuffer *vb, int offset, int size, int flags) |
void | Xe_VB_Unlock (struct XenosDevice *xe, struct XenosVertexBuffer *vb) |
void * | Xe_IB_Lock (struct XenosDevice *xe, struct XenosIndexBuffer *ib, int offset, int size, int flags) |
void | Xe_IB_Unlock (struct XenosDevice *xe, struct XenosIndexBuffer *ib) |
void | Xe_SetVertexShaderConstantF (struct XenosDevice *xe, int start, const float *data, int count) |
void | Xe_SetPixelShaderConstantF (struct XenosDevice *xe, int start, const float *data, int count) |
void | Xe_SetVertexShaderConstantB (struct XenosDevice *xe, int index, int value) |
void | Xe_SetPixelShaderConstantB (struct XenosDevice *xe, int index, int value) |
struct XenosSurface * | Xe_CreateTexture (struct XenosDevice *xe, unsigned int width, unsigned int height, unsigned int levels, int format, int tiled) |
void | Xe_DestroyTexture (struct XenosDevice *xe, struct XenosSurface *surface) |
void * | Xe_Surface_LockRect (struct XenosDevice *xe, struct XenosSurface *surface, int x, int y, int w, int h, int flags) |
void | Xe_Surface_Unlock (struct XenosDevice *xe, struct XenosSurface *surface) |
int | Xe_IsVBlank (struct XenosDevice *xe) |
Variables | |
void const char * | fmt |
void __attribute__ | ( | (noreturn) | ) |
void Xe_Clear | ( | struct XenosDevice * | xe, |
int | flags | ||
) |
struct XenosIndexBuffer * Xe_CreateIndexBuffer | ( | struct XenosDevice * | xe, |
int | length, | ||
int | format | ||
) |
struct XenosSurface * Xe_CreateTexture | ( | struct XenosDevice * | xe, |
unsigned int | width, | ||
unsigned int | height, | ||
unsigned int | levels, | ||
int | format, | ||
int | tiled | ||
) |
struct XenosVertexBuffer * Xe_CreateVertexBuffer | ( | struct XenosDevice * | xe, |
int | length | ||
) |
void Xe_DestroyIndexBuffer | ( | struct XenosDevice * | xe, |
struct XenosIndexBuffer * | ib | ||
) |
void Xe_DestroyTexture | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface | ||
) |
void Xe_DestroyVertexBuffer | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb | ||
) |
void Xe_DirtyAluConstant | ( | struct XenosDevice * | xe, |
int | base, | ||
int | len | ||
) |
void Xe_DirtyFetch | ( | struct XenosDevice * | xe, |
int | base, | ||
int | len | ||
) |
void Xe_Draw | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb, | ||
struct XenosIndexBuffer * | ib | ||
) |
void Xe_DrawIndexedPrimitive | ( | struct XenosDevice * | xe, |
int | type, | ||
int | base_index, | ||
int | min_index, | ||
int | num_vertices, | ||
int | start_index, | ||
int | primitive_count | ||
) |
void Xe_DrawPrimitive | ( | struct XenosDevice * | xe, |
int | type, | ||
int | start, | ||
int | primitive_count | ||
) |
void Xe_Execute | ( | struct XenosDevice * | xe | ) |
struct XenosSurface * Xe_GetFramebufferSurface | ( | struct XenosDevice * | xe | ) |
int Xe_GetShaderLength | ( | struct XenosDevice * | xe, |
void * | sh | ||
) |
void * Xe_IB_Lock | ( | struct XenosDevice * | xe, |
struct XenosIndexBuffer * | ib, | ||
int | offset, | ||
int | size, | ||
int | flags | ||
) |
void Xe_IB_Unlock | ( | struct XenosDevice * | xe, |
struct XenosIndexBuffer * | ib | ||
) |
void Xe_Init | ( | struct XenosDevice * | xe | ) |
void Xe_InstantiateShader | ( | struct XenosDevice * | xe, |
struct XenosShader * | sh, | ||
unsigned int | index | ||
) |
void Xe_InvalidateState | ( | struct XenosDevice * | xe | ) |
int Xe_IsVBlank | ( | struct XenosDevice * | xe | ) |
struct XenosShader * Xe_LoadShader | ( | struct XenosDevice * | xe, |
const char * | filename | ||
) |
struct XenosShader * Xe_LoadShaderFromMemory | ( | struct XenosDevice * | xe, |
void * | shader | ||
) |
void Xe_Resolve | ( | struct XenosDevice * | xe | ) |
void Xe_ResolveInto | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface, | ||
int | source, | ||
int | clear | ||
) |
void Xe_SetAlphaFunc | ( | struct XenosDevice * | xe, |
unsigned int | func | ||
) |
void Xe_SetAlphaRef | ( | struct XenosDevice * | xe, |
float | alpharef | ||
) |
void Xe_SetAlphaTestEnable | ( | struct XenosDevice * | xe, |
int | enable | ||
) |
void Xe_SetBlendControl | ( | struct XenosDevice * | xe, |
int | col_src, | ||
int | col_op, | ||
int | col_dst, | ||
int | alpha_src, | ||
int | alpha_op, | ||
int | alpha_dst | ||
) |
void Xe_SetBlendOp | ( | struct XenosDevice * | xe, |
unsigned int | blendop | ||
) |
void Xe_SetBlendOpAlpha | ( | struct XenosDevice * | xe, |
unsigned int | blendop | ||
) |
void Xe_SetClearColor | ( | struct XenosDevice * | xe, |
u32 | clearcolor | ||
) |
void Xe_SetClipPlane | ( | struct XenosDevice * | xe, |
int | idx, | ||
float * | plane | ||
) |
void Xe_SetClipPlaneEnables | ( | struct XenosDevice * | xe, |
int | enables | ||
) |
void Xe_SetCullMode | ( | struct XenosDevice * | xe, |
unsigned int | cullmode | ||
) |
void Xe_SetDestBlend | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetDestBlendAlpha | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetFillMode | ( | struct XenosDevice * | xe, |
int | front, | ||
int | back | ||
) |
void Xe_SetFrameBufferSurface | ( | struct XenosDevice * | xe, |
struct XenosSurface * | fb | ||
) |
void Xe_SetIndices | ( | struct XenosDevice * | de, |
struct XenosIndexBuffer * | ib | ||
) |
void Xe_SetPixelShaderConstantB | ( | struct XenosDevice * | xe, |
int | index, | ||
int | value | ||
) |
void Xe_SetPixelShaderConstantF | ( | struct XenosDevice * | xe, |
int | start, | ||
const float * | data, | ||
int | count | ||
) |
void const char void Xe_SetRenderTarget | ( | struct XenosDevice * | xe, |
struct XenosSurface * | rt | ||
) |
void Xe_SetScissor | ( | struct XenosDevice * | xe, |
int | enable, | ||
int | left, | ||
int | top, | ||
int | right, | ||
int | bottom | ||
) |
void Xe_SetShader | ( | struct XenosDevice * | xe, |
int | type, | ||
struct XenosShader * | sh, | ||
int | instance | ||
) |
void Xe_SetSrcBlend | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetSrcBlendAlpha | ( | struct XenosDevice * | xe, |
unsigned int | blend | ||
) |
void Xe_SetStencilEnable | ( | struct XenosDevice * | xe, |
unsigned int | enable | ||
) |
void Xe_SetStencilFunc | ( | struct XenosDevice * | xe, |
int | bfff, | ||
unsigned int | func | ||
) |
void Xe_SetStencilMask | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | mask | ||
) |
void Xe_SetStencilOp | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | fail, | ||
int | zfail, | ||
int | pass | ||
) |
void Xe_SetStencilRef | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | ref | ||
) |
void Xe_SetStencilWriteMask | ( | struct XenosDevice * | xe, |
int | bfff, | ||
int | writemask | ||
) |
void Xe_SetStreamSource | ( | struct XenosDevice * | xe, |
int | index, | ||
struct XenosVertexBuffer * | vb, | ||
int | offset, | ||
int | stride | ||
) |
void Xe_SetTexture | ( | struct XenosDevice * | xe, |
int | index, | ||
struct XenosSurface * | tex | ||
) |
void Xe_SetVertexShaderConstantB | ( | struct XenosDevice * | xe, |
int | index, | ||
int | value | ||
) |
void Xe_SetVertexShaderConstantF | ( | struct XenosDevice * | xe, |
int | start, | ||
const float * | data, | ||
int | count | ||
) |
void Xe_SetZEnable | ( | struct XenosDevice * | xe, |
int | zw | ||
) |
void Xe_SetZFunc | ( | struct XenosDevice * | xe, |
int | z_func | ||
) |
void Xe_SetZWrite | ( | struct XenosDevice * | xe, |
int | zw | ||
) |
void Xe_ShaderApplyVFetchPatches | ( | struct XenosDevice * | xe, |
struct XenosShader * | sh, | ||
unsigned int | index, | ||
const struct XenosVBFFormat * | fmt | ||
) |
void * Xe_Surface_LockRect | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface, | ||
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
int | flags | ||
) |
void Xe_Surface_Unlock | ( | struct XenosDevice * | xe, |
struct XenosSurface * | surface | ||
) |
void Xe_Sync | ( | struct XenosDevice * | xe | ) |
void * Xe_VB_Lock | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb, | ||
int | offset, | ||
int | size, | ||
int | flags | ||
) |
void Xe_VB_Unlock | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb | ||
) |
void Xe_VBBegin | ( | struct XenosDevice * | xe, |
int | pitch | ||
) |
struct XenosVertexBuffer * Xe_VBEnd | ( | struct XenosDevice * | xe | ) |
int Xe_VBFCalcSize | ( | struct XenosDevice * | xe, |
const struct XenosVBFElement * | fmt | ||
) |
int Xe_VBFCalcStride | ( | struct XenosDevice * | xe, |
const struct XenosVBFFormat * | fmt | ||
) |
void Xe_VBPoolAdd | ( | struct XenosDevice * | xe, |
struct XenosVertexBuffer * | vb | ||
) |
struct XenosVertexBuffer * Xe_VBPoolAlloc | ( | struct XenosDevice * | xe, |
int | size | ||
) |
void Xe_VBPut | ( | struct XenosDevice * | xe, |
void * | data, | ||
int | len | ||
) |
void Xe_VBReclaim | ( | struct XenosDevice * | xe | ) |