OpenXcom
1.0
Open-source clone of the original X-Com
|
This is surface argument to ShaderDraw
.
More...
#include <ShaderDrawHelper.h>
Public Member Functions | |
ShaderBase (const ShaderBase &s) | |
copy constructor | |
ShaderBase (const ShaderBase< Uint8 > &s) | |
copy constructor | |
ShaderBase (const Surface *s) | |
create surface using surface s as data source. More... | |
ShaderBase (const std::vector< Uint8 > &f, int max_x, int max_y) | |
create surface using vector f as data source. More... | |
This is surface argument to ShaderDraw
.
every pixel of this surface will have type const Uint8
. Can be constructed from const Surface*
. You cant modify pixel in that surface.
|
inline |
create surface using surface s
as data source.
surface will have same dimensions as s
. Attention: after use of this constructor you change size of surface s
then _orgin
will be invalid and use of this object will cause memory exception.
s | vector that are treated as surface |
|
inline |
create surface using vector f
as data source.
surface will have max_y
x max_x
dimensions. size of f
should be bigger than max_y*max_x
. Attention: after use of this constructor you change size of f
then _orgin
will be invalid and use of this object will case memory exception.
f | vector that are treated as surface |
max_x | x dimension of f |
max_y | y dimension of f |