mirror of https://github.com/axmolengine/axmol.git
update comment
This commit is contained in:
parent
11f1bd6e28
commit
23f03bc65f
|
@ -46,10 +46,10 @@ NS_CC_BEGIN
|
|||
|
||||
// Helpers
|
||||
|
||||
//
|
||||
//sampler uniform names, only diffuse and normal texture are supported for now
|
||||
std::string s_uniformSamplerName[] =
|
||||
{
|
||||
"",//NTextureData::Usage::Unknown
|
||||
"",//NTextureData::Usage::Unknown,
|
||||
"",//NTextureData::Usage::None
|
||||
"",//NTextureData::Usage::Diffuse
|
||||
"",//NTextureData::Usage::Emissive
|
||||
|
|
|
@ -96,12 +96,12 @@ public:
|
|||
int getVertexSizeInBytes() const;
|
||||
|
||||
/**
|
||||
* set texture
|
||||
* set diffuse texture
|
||||
* @param texPath texture path
|
||||
*/
|
||||
void setTexture(const std::string& texPath);
|
||||
/**
|
||||
* set texture
|
||||
* set diffuse texture
|
||||
* @param tex texture to be set
|
||||
*/
|
||||
void setTexture(Texture2D* tex);
|
||||
|
|
|
@ -80,7 +80,7 @@ public:
|
|||
|
||||
static void createAsync(const std::string &modelPath, const std::string &texturePath, const std::function<void(Sprite3D*, void*)>& callback, void* callbackparam);
|
||||
|
||||
/**set texture, set the first if multiple textures exist*/
|
||||
/**set diffuse texture, set the first if multiple textures exist*/
|
||||
void setTexture(const std::string& texFile);
|
||||
void setTexture(Texture2D* texture);
|
||||
|
||||
|
|
Loading…
Reference in New Issue