16,005,734 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 11492419 (Top 9 by date)
Member 11492419
15-Jul-15 8:22am
View
I haven't tried anything but I have a few ideas of how to do it, don't know if they'll work though.
Member 11492419
30-Jun-15 15:33pm
View
Ok thanks Richard
Member 11492419
29-Jun-15 14:23pm
View
Ya that is why I am confused on how to write an if statement with sharedprefernces, any suggestions?
Member 11492419
28-Jun-15 11:25am
View
The if statement is right under draw prism
Member 11492419
12-Jun-15 14:40pm
View
OH my goodness it worked, thank you so much, I'v been trying to solve this issue for 2 days now, thank you!
Member 11492419
11-Jun-15 11:46am
View
Here is what they look like:
<pre> public void loadTextures(GL10 gl) {
//Generate Texture
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
int textureIds[] = new int[1];
gl.glGenTextures(1, textureIds, 0);
int textureId = textureIds[0];
gl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);
GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);
gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer);
gl.glDisable(GL10.GL_TEXTURE_2D);
bitmap.recycle();
} </pre>
<pre> public void draw(GL10 gl) {
//Set rotation speed/Rotate around the Y axis
/* long time = SystemClock.uptimeMillis() % 4000L;
float angle = .090f * ((int) time);
gl.glRotatef(angle, 0, 3, 0); */
//Draw Cube
gl.glFrontFace(GL10.GL_CW);
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glVertexPointer(2, GL10.GL_FLOAT, 0, floatBuffer);
gl.glDrawElements(GL10.GL_TRIANGLES, indices.length, GL10.GL_UNSIGNED_SHORT, shortBuffer);
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
} </pre>
Member 11492419
11-Jun-15 11:43am
View
Is there a certain method I need to call to unbind it? When I call gl.glDisable() it removes the texture for all the shapes.
Member 11492419
16-May-15 12:10pm
View
But can't you use the <shape> to draw different shapes and such?
Member 11492419
14-May-15 17:33pm
View
What do you mean by does it hang the application? The application works fine if that's what your asking.
Show More