I've created a project from default iPhone OpenGL project template. I'd like to place text on the view, so I'm trying to use Texture2D class provided by Apple.
Could you help? I'm developing with OS 3.0. I've searched this forum for solution but everything I've found doesn't work for me. What am I doing wrong?
What is happening wrong? Is it compiling? Does it display anything? Does it crash when it start running?
Is the commented out part yours or the default stuff?
Also, I am not sure if you have already found it or not but if you are starting out OpenGL on iphone Simon Maurices Blog is really good: iPhone OpenGL ES Tutorial Series ?
yeah you need to give information on what is going wrong
although calling the glBlendfunc twice won't help, although don't think it will really effect anything but remove them both and see what happens (not sure what the 2nd blendFunc is doing?)
It might be just cause I am not that good at openGL but I think it is very difficult to tell what you are doing wrong just from that.
For starters, some of the commented out code, starting with the glViewPort, do you have equivalent code somewhere else in your code or did you just eliminate it all together? You can throw away some of that stuff but some of it you need to do before you draw.
I don't know about the Texture2D class though, I can't find the documentation for it.
What might be easier is if you first just try to draw your text on top of Apples starting shape, then once you have you text drawing start removing apples stuff. That way you can break it down into smaller parts and have a better idea where things start going wrong.
yeah you need to give information on what is going wrong
although calling the glBlendfunc twice won't help, although don't think it will really effect anything but remove them both and see what happens (not sure what the 2nd blendFunc is doing?)
Quote:
Originally Posted by gotorightway123
you need to give information on what is going wrong
although calling the glBlendfunc twice won't help, although don't think it will really effect anything but remove them both and see what happens (not sure what the 2nd blendFunc is doing?)
You quoted me directly without the quote tags? and didn't say anything else? (and without the 'yeah' at the start)