Skip to content

Commit 0ce5b62

Browse files
committed
Remove changes
1 parent 439c73a commit 0ce5b62

2 files changed

Lines changed: 20 additions & 44 deletions

File tree

libs/openFrameworks/gl/ofMaterial.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,10 +1350,6 @@ void ofMaterial::setCustomUniformTexture(const std::string & name, int textureTa
13501350
uniformstex[name] = {textureTarget, textureID, textureLocation, shaderDefine};
13511351
}
13521352

1353-
ofMaterial::Data ofMaterial::getData() const {
1354-
return ofMaterial::Data();
1355-
}
1356-
13571353
//--------------------------------------------------------
13581354
bool ofMaterial::removeCustomUniformTexture(const ofMaterialTextureType& aMaterialTextureType) {
13591355
return removeCustomUniformTexture(getUniformName(aMaterialTextureType));
@@ -1500,7 +1496,6 @@ const std::string ofMaterial::getDefinesString() const {
15001496

15011497
#include "shaders/pbr.vert"
15021498
#include "shaders/pbr.frag"
1503-
#include "ofMaterialBaseTypes.h"
15041499

15051500

15061501
namespace{
@@ -1623,12 +1618,3 @@ namespace{
16231618
return header+source;
16241619
}
16251620
}
1626-
1627-
void
1628-
ofBaseMaterial::uploadMatrices(const ofShader &shader, ofGLProgrammableRenderer &renderer) const {
1629-
1630-
}
1631-
1632-
bool ofBaseMaterial::isBound() const {
1633-
return false;
1634-
}

libs/openFrameworks/gl/ofTexture.cpp

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,27 @@ static void release(GLuint id){
163163
}
164164
}
165165

166+
#ifdef TARGET_ANDROID
167+
static set<ofTexture*> & allTextures(){
168+
static set<ofTexture*> * allTextures = new set<ofTexture*>;
169+
return *allTextures;
170+
}
171+
172+
static void registerTexture(ofTexture * texture){
173+
allTextures().insert(texture);
174+
}
175+
176+
static void unregisterTexture(ofTexture * texture){
177+
allTextures().erase(texture);
178+
}
166179

180+
void ofRegenerateAllTextures(){
181+
for(auto tex: allTextures()){
182+
tex->clear();
183+
}
184+
}
185+
186+
#endif
167187

168188
//----------------------------------------------------------
169189
ofTexture::ofTexture(){
@@ -1273,33 +1293,3 @@ float ofTexture::getHeight() const {
12731293
float ofTexture::getWidth() const {
12741294
return texData.width;
12751295
}
1276-
1277-
void ofTexture::enableTextureTarget(int textureLocation) const {
1278-
1279-
}
1280-
1281-
void ofTexture::disableTextureTarget(int textureLocation) const {
1282-
1283-
}
1284-
1285-
#ifdef TARGET_ANDROID
1286-
set<ofTexture*> & ofTexture::allTextures(){
1287-
static set<ofTexture*> * allTextures = new set<ofTexture*>;
1288-
return *allTextures;
1289-
}
1290-
1291-
void ofTexture::registerTexture(ofTexture * texture){
1292-
allTextures().insert(texture);
1293-
}
1294-
1295-
void ofTexture::unregisterTexture(ofTexture * texture){
1296-
allTextures().erase(texture);
1297-
}
1298-
1299-
void ofTexture::ofRegenerateAllTextures(){
1300-
for(auto tex: allTextures()){
1301-
tex->clear();
1302-
}
1303-
}
1304-
1305-
#endif

0 commit comments

Comments
 (0)