Last change
on this file since 352 was 326, checked in by rossy, 15 years ago |
This is the first "non-working" commit of Daodan. For this reason, the last fully working release is in the /release/ folder while the current build is in the /build/ folder. The reason it's not working is that I'm trying to write a "proper" windowed mode by replacing ONrPlatform_Initialize and gl_platform_initialize. I'm currently in the middle of rewriting gl_platform_initialize and Oni's draw engine doesn't like the new code.
|
File size:
1.2 KB
|
Rev | Line | |
---|
[297] | 1 | #pragma once
|
---|
| 2 | #ifndef BFW_MOTOKO_DRAW_H
|
---|
| 3 | #define BFW_MOTOKO_DRAW_H
|
---|
| 4 |
|
---|
| 5 | #include "Daodan.h"
|
---|
| 6 |
|
---|
| 7 | typedef struct
|
---|
| 8 | {
|
---|
| 9 | short Width;
|
---|
| 10 | short Height;
|
---|
| 11 | short Depth;
|
---|
| 12 | short __unused;
|
---|
| 13 | } M3tDisplayMode;
|
---|
| 14 |
|
---|
[326] | 15 | typedef struct
|
---|
| 16 | {
|
---|
| 17 | int Type;
|
---|
| 18 | char Name[64];
|
---|
| 19 | char a[64];
|
---|
| 20 | int b, c, d;
|
---|
| 21 | short DisplayModeCount;
|
---|
| 22 | M3tDisplayMode DisplayModes[12];
|
---|
| 23 | char e[990];
|
---|
| 24 | } M3tDrawEngineCaps;
|
---|
| 25 |
|
---|
| 26 | typedef struct
|
---|
| 27 | {
|
---|
| 28 | int Context_New;
|
---|
| 29 | int Context_Delete;
|
---|
| 30 | int Texture_ResetAll;
|
---|
| 31 | int PrivateState_Size;
|
---|
| 32 | int PrivateState_New;
|
---|
| 33 | int PrivateState_Delete;
|
---|
| 34 | int State_Update;
|
---|
| 35 | } M3tDrawEngine;
|
---|
| 36 |
|
---|
| 37 | typedef struct
|
---|
| 38 | {
|
---|
| 39 | int FrameStart;
|
---|
| 40 | int FrameEnd;
|
---|
| 41 | int FrameSync;
|
---|
| 42 | int Triangle;
|
---|
| 43 | int Quad;
|
---|
| 44 | int Pent;
|
---|
| 45 | int Line;
|
---|
| 46 | int Point;
|
---|
| 47 | int TriSprite;
|
---|
| 48 | int Sprite;
|
---|
| 49 | int SpriteArray;
|
---|
| 50 | int ScreenCapture;
|
---|
| 51 | int PointVisible;
|
---|
| 52 | int SupportsPointVisible;
|
---|
| 53 | int TextureFormatAvailable;
|
---|
| 54 | int SetResolution;
|
---|
| 55 | int ResetFog;
|
---|
| 56 | int TextureLoad;
|
---|
| 57 | int TextureUnload;
|
---|
| 58 | int SinglePassMultitextureCapable;
|
---|
| 59 | } M3tDrawContext;
|
---|
| 60 |
|
---|
| 61 | typedef struct
|
---|
| 62 | {
|
---|
| 63 | float *Position;
|
---|
| 64 | int *Color;
|
---|
| 65 | float *TexCoord0;
|
---|
| 66 | float *TexCoord1;
|
---|
| 67 | void *Texture0;
|
---|
| 68 | void *Texture1;
|
---|
| 69 | void *State6;
|
---|
| 70 | void *State7;
|
---|
| 71 | void *State8;
|
---|
| 72 | } M3tDrawPtrState;
|
---|
| 73 |
|
---|
| 74 | extern char M3gResolutionSwitch;
|
---|
| 75 |
|
---|
[297] | 76 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.