mirror of https://github.com/axmolengine/axmol.git
fix android compile error
This commit is contained in:
parent
62c6eae7c3
commit
58c40c1cc6
|
@ -34,6 +34,7 @@
|
|||
#include "base/CCDirector.h"
|
||||
#include "base/CCAsyncTaskPool.h"
|
||||
#include "base/ccUTF8.h"
|
||||
#include "base/ccUtils.h"
|
||||
#include "2d/CCLight.h"
|
||||
#include "2d/CCCamera.h"
|
||||
#include "base/ccMacros.h"
|
||||
|
|
|
@ -300,8 +300,10 @@ public:
|
|||
//TODO: minggo: is it resaonable?
|
||||
bool initWithBackendTexture(backend::Texture* texture);
|
||||
|
||||
|
||||
//TODO: should be remove later
|
||||
/** Set sampler properties
|
||||
*/
|
||||
void setSamplerDescriptor(const backend::SamplerDescriptor& texParams);
|
||||
|
||||
void setTexParameters(const TexParams ¶ms);
|
||||
|
||||
/** Generates mipmap images for the texture.
|
||||
|
@ -403,11 +405,6 @@ private:
|
|||
std::unordered_map<SpriteFrame*, Rect> capInsetMap;
|
||||
};
|
||||
|
||||
|
||||
/** Set sampler properties
|
||||
*/
|
||||
void setSamplerDescriptor(const backend::SamplerDescriptor& texParams);
|
||||
|
||||
/**
|
||||
* Whether the texture contains a 9-patch capInset info or not.
|
||||
*
|
||||
|
|
|
@ -2157,10 +2157,10 @@ void Sprite3DCubeMapTest::addNewSpriteWithCoords(Vec2 p)
|
|||
_textureCube->retain();
|
||||
//set texture parameters
|
||||
Texture2D::TexParams tRepeatParams;
|
||||
tRepeatParams.magFilter = GL_LINEAR;
|
||||
tRepeatParams.minFilter = GL_LINEAR;
|
||||
tRepeatParams.wrapS = GL_CLAMP_TO_EDGE;
|
||||
tRepeatParams.wrapT = GL_CLAMP_TO_EDGE;
|
||||
tRepeatParams.magFilter = backend::SamplerFilter::LINEAR;
|
||||
tRepeatParams.minFilter = backend::SamplerFilter::LINEAR;
|
||||
tRepeatParams.wrapS = backend::SamplerAddressMode::CLAMP_TO_EDGE;
|
||||
tRepeatParams.wrapT = backend::SamplerAddressMode::CLAMP_TO_EDGE;
|
||||
_textureCube->setTexParameters(tRepeatParams);
|
||||
|
||||
auto mat = Sprite3DMaterial::createWithFilename("Sprite3DTest/CubeMap.material");
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 30b0386b0ed6ee762d7f6570547c4d639fb12f92
|
||||
Subproject commit 4c2c3e63f6a00242b2bd67ab930237b7478f27d1
|
Loading…
Reference in New Issue