TextureCube is a collection of six separate square textures that are put onto the faces of an imaginary cube.
More...
Inherits Ref.
|
static TextureCube * | create (const std::string &positive_x, const std::string &negative_x, const std::string &positive_y, const std::string &negative_y, const std::string &positive_z, const std::string &negative_z) |
| create cube texture from 6 textures. More...
|
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
TextureCube is a collection of six separate square textures that are put onto the faces of an imaginary cube.
◆ create()
static TextureCube* create |
( |
const std::string & |
positive_x, |
|
|
const std::string & |
negative_x, |
|
|
const std::string & |
positive_y, |
|
|
const std::string & |
negative_y, |
|
|
const std::string & |
positive_z, |
|
|
const std::string & |
negative_z |
|
) |
| |
|
static |
create cube texture from 6 textures.
- Parameters
-
positive_x | texture for the right side of the texture cube face. |
negative_x | texture for the up side of the texture cube face. |
positive_y | texture for the top side of the texture cube face |
negative_y | texture for the bottom side of the texture cube face |
positive_z | texture for the forward side of the texture cube face. |
negative_z | texture for the rear side of the texture cube face. |
- Returns
- A new texture cube inited with given parameters.
◆ setTexParameters()
Sets the min filter, mag filter, wrap s and wrap t texture parameters.
If the texture size is NPOT (non power of 2), then in can only use GL_CLAMP_TO_EDGE in GL_TEXTURE_WRAP_{S,T}.
The documentation for this class was generated from the following file: