comparison engine/core/video/renderbackend.h @ 661:e3140f01749d

* Merged the light branch back into trunk. * Modified the demos so they work with the new loaders and setting.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 05 Nov 2010 15:21:10 +0000
parents 5d6b1820b953
children 46258f467c8c
comparison
equal deleted inserted replaced
660:b0733d998d0f 661:e3140f01749d
22 #ifndef FIFE_VIDEO_RENDERBACKEND_H 22 #ifndef FIFE_VIDEO_RENDERBACKEND_H
23 #define FIFE_VIDEO_RENDERBACKEND_H 23 #define FIFE_VIDEO_RENDERBACKEND_H
24 24
25 // Standard C++ library includes 25 // Standard C++ library includes
26 #include <string> 26 #include <string>
27 #include <vector>
27 28
28 // Platform specific includes 29 // Platform specific includes
29 #include "util/base/fife_stdint.h" 30 #include "util/base/fife_stdint.h"
30 31
31 // 3rd party library includes 32 // 3rd party library includes
77 virtual void init(const std::string& driver) = 0; 78 virtual void init(const std::string& driver) = 0;
78 79
79 /** Forces a clear of the backbuffer 80 /** Forces a clear of the backbuffer
80 */ 81 */
81 virtual void clearBackBuffer() = 0; 82 virtual void clearBackBuffer() = 0;
83
84 /** Initializes the light.
85 */
86 virtual void setLightingModel(unsigned int lighting) = 0;
87
88 /** Gets the current light model.
89 */
90 virtual unsigned int getLightingModel() const = 0;
91
92 /** Enable the lighting.
93 */
94 virtual void enableLighting() = 0;
95
96 /** Disable the lighting.
97 */
98 virtual void disableLighting() = 0;
99
100 /** Set colors for lighting
101 */
102 virtual void setLighting(float red, float green, float blue, float alpha) = 0;
103
104 /** Reset lighting with default values.
105 */
106 virtual void resetLighting() = 0;
107
108 /** Enable the stencil test.
109 */
110 virtual void enableStencilTest() = 0;
111
112 /** Disable the stencil test.
113 */
114 virtual void disableStencilTest() = 0;
115
116 /** Set reference for the stencil test.
117 */
118 virtual void setStencilTest(Uint8 stencil_ref, unsigned int stencil_op, unsigned int stencil_func) = 0;
119
120 /** Reset stencil buffer with given value.
121 */
122 virtual void resetStencilBuffer(Uint8 buffer) = 0;
123
124 /** Return the reference value for the stencil test.
125 */
126 virtual Uint8 getStencilRef() const = 0;
127
128 /** Enable the alpha test.
129 */
130 virtual void enableAlphaTest() = 0;
131
132 /** Disable the stencil test.
133 */
134 virtual void disableAlphaTest() = 0;
135
136 /** Set reference for the alpha test.
137 */
138 virtual void setAlphaTest(float ref_alpha) = 0;
139
140 /** Change the Blendingmodel.
141 */
142 virtual void changeBlending(int scr, int dst) = 0;
82 143
83 /** Performs cleanup actions. 144 /** Performs cleanup actions.
84 */ 145 */
85 virtual void deinit(); 146 virtual void deinit();
86 147