update comment

This commit is contained in:
yangxiao 2015-12-01 10:47:25 +08:00
parent 11f1bd6e28
commit 23f03bc65f
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);