| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#ifndef REND_D3D_H |
| 20 |
#define REND_D3D_H |
| 21 |
|
| 22 |
#include "renderer.h" |
| 23 |
#include "3d.h" |
| 24 |
|
| 25 |
class oeApplication; |
| 26 |
|
| 27 |
|
| 28 |
int d3d_Init(oeApplication *app, renderer_preferred_state *pref_state); |
| 29 |
|
| 30 |
|
| 31 |
void d3d_Close(); |
| 32 |
|
| 33 |
|
| 34 |
void d3d_DrawPolygon(int, g3Point **, int, int); |
| 35 |
|
| 36 |
void d3d_SetFlatColor(ddgr_color color); |
| 37 |
|
| 38 |
|
| 39 |
void d3d_EndFrame(); |
| 40 |
|
| 41 |
|
| 42 |
void d3d_Flip(); |
| 43 |
|
| 44 |
|
| 45 |
void d3d_BeginFrame(int, int, int, int, int); |
| 46 |
|
| 47 |
|
| 48 |
void d3d_SetTextureType(texture_type); |
| 49 |
|
| 50 |
|
| 51 |
void d3d_SetLightingState(light_state state); |
| 52 |
|
| 53 |
|
| 54 |
void d3d_SetColorModel(color_model state); |
| 55 |
|
| 56 |
|
| 57 |
void d3d_SetFiltering(int8_t state); |
| 58 |
|
| 59 |
|
| 60 |
void d3d_SetZBufferState(int8_t state); |
| 61 |
|
| 62 |
|
| 63 |
void d3d_SetZValues(float nearz, float farz); |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
void d3d_SetLightingMap(int handle); |
| 68 |
|
| 69 |
|
| 70 |
void d3d_ClearScreen(ddgr_color color); |
| 71 |
|
| 72 |
|
| 73 |
void d3d_FillRect(ddgr_color color, int x1, int y1, int x2, int y2); |
| 74 |
|
| 75 |
|
| 76 |
void d3d_SetPixel(ddgr_color color, int x, int y); |
| 77 |
|
| 78 |
|
| 79 |
void d3d_SetFogBorders(float nearz, float farz); |
| 80 |
|
| 81 |
|
| 82 |
void d3d_SetFogState(int8_t state); |
| 83 |
|
| 84 |
|
| 85 |
void d3d_DrawLine(int x1, int y1, int x2, int y2); |
| 86 |
|
| 87 |
|
| 88 |
void d3d_SetFogColor(ddgr_color fogcolor); |
| 89 |
|
| 90 |
|
| 91 |
void d3d_SetAlphaType(int8_t); |
| 92 |
|
| 93 |
|
| 94 |
void d3d_SetAlphaValue(uint8_t val); |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
void d3d_SetAlphaFactor(float val); |
| 99 |
|
| 100 |
|
| 101 |
float d3d_GetAlphaFactor(void); |
| 102 |
|
| 103 |
|
| 104 |
void d3d_SetWrapType(wrap_type val); |
| 105 |
|
| 106 |
|
| 107 |
void d3d_Screenshot(int bm_handle); |
| 108 |
|
| 109 |
|
| 110 |
void d3d_SetZBufferWriteMask(int state); |
| 111 |
|
| 112 |
|
| 113 |
void d3d_GetLFBLock(renderer_lfb *lfb); |
| 114 |
|
| 115 |
|
| 116 |
void d3d_ReleaseLFBLock(renderer_lfb *lfb); |
| 117 |
|
| 118 |
void d3d_GetProjectionParameters(int *width, int *height); |
| 119 |
float d3d_GetAspectRatio(); |
| 120 |
|
| 121 |
|
| 122 |
void d3d_DrawSpecialLine(g3Point *p0, g3Point *p1); |
| 123 |
|
| 124 |
void d3d_SetMipState(int8_t); |
| 125 |
|
| 126 |
|
| 127 |
int d3d_SetPreferredState(renderer_preferred_state *pref_state); |
| 128 |
|
| 129 |
|
| 130 |
void d3d_SetGammaValue(float val); |
| 131 |
|
| 132 |
|
| 133 |
void d3d_GetRenderState(rendering_state *rstate); |
| 134 |
|
| 135 |
|
| 136 |
void d3d_SetResolution(int width, int height); |
| 137 |
|
| 138 |
|
| 139 |
void d3d_SetCoplanarPolygonOffset(float factor); |
| 140 |
|
| 141 |
|
| 142 |
void d3d_PreUploadTextureToCard(int handle, int map_type); |
| 143 |
|
| 144 |
|
| 145 |
void d3d_FreePreUploadedTexture(int handle, int map_type); |
| 146 |
|
| 147 |
|
| 148 |
const char *d3d_ErrorString(int error); |
| 149 |
|
| 150 |
|
| 151 |
void d3d_Screenshot(int bm_handle); |
| 152 |
|
| 153 |
|
| 154 |
int d3d_SupportsBumpmapping(); |
| 155 |
|
| 156 |
|
| 157 |
void d3d_ClearZBuffer(); |
| 158 |
|
| 159 |
|
| 160 |
void d3d_ResetCache(); |
| 161 |
|
| 162 |
|
| 163 |
void d3d_GetLFBLock(renderer_lfb *lfb); |
| 164 |
void d3d_ReleaseLFBLock(renderer_lfb *lfb); |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
void d3d_CopyBitmapToFramebuffer(int bm_handle, int x, int y); |
| 169 |
|
| 170 |
|
| 171 |
void d3d_SetFrameBufferCopyState(bool state); |
| 172 |
|
| 173 |
#if defined(WIN32) |
| 174 |
|
| 175 |
void *d3d_DirectDrawObj(void **frontsurf, void **backsurf); |
| 176 |
#endif |
| 177 |
|
| 178 |
|
| 179 |
void d3d_GetStatistics(tRendererStats *stats); |
| 180 |
|
| 181 |
#endif |