ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/BFW_Motoko_Draw.h
Revision: 692
Committed: Thu Mar 7 17:26:13 2013 UTC (12 years, 7 months ago) by alloc
Content type: text/x-chdr
File size: 1234 byte(s)
Log Message:
Daodan: Lots of cleanups (mostly unnecessary includes removed, empty files deleted, case of filenames corrected)

File Contents

# Content
1 #ifndef BFW_MOTOKO_DRAW_H
2 #define BFW_MOTOKO_DRAW_H
3
4 typedef struct
5 {
6 unsigned short Width;
7 unsigned short Height;
8 unsigned short Depth;
9 unsigned short __unused;
10 } M3tDisplayMode;
11
12 typedef struct
13 {
14 int Type;
15 char Name[64];
16 char a[64];
17 int b, c, d;
18 short DisplayModeCount;
19 M3tDisplayMode DisplayModes[12];
20 char e[990];
21 } M3tDrawEngineCaps;
22
23 typedef struct
24 {
25 int Context_New;
26 int Context_Delete;
27 int Texture_ResetAll;
28 int PrivateState_Size;
29 int PrivateState_New;
30 int PrivateState_Delete;
31 int State_Update;
32 } M3tDrawEngine;
33
34 typedef struct
35 {
36 int FrameStart;
37 int FrameEnd;
38 int FrameSync;
39 int Triangle;
40 int Quad;
41 int Pent;
42 int Line;
43 int Point;
44 int TriSprite;
45 int Sprite;
46 int SpriteArray;
47 int ScreenCapture;
48 int PointVisible;
49 int SupportsPointVisible;
50 int TextureFormatAvailable;
51 int SetResolution;
52 int ResetFog;
53 int TextureLoad;
54 int TextureUnload;
55 int SinglePassMultitextureCapable;
56 } M3tDrawContext;
57
58 typedef struct
59 {
60 float *Position;
61 int *Color;
62 float *TexCoord0;
63 float *TexCoord1;
64 void *Texture0;
65 void *Texture1;
66 void *State6;
67 void *State7;
68 void *State8;
69 } M3tDrawPtrState;
70
71 extern char M3gResolutionSwitch;
72
73 #endif