I'm trying to hack render2texture into GooBall, using the NSView
createTexture:FromView:InternalFormat function, but I keep getting an
Invalid enum. I tried hacking around with pixel formats, etc.. to no
avail, and would really appreciate it if someone who got it to work has
some input. Here is the info:
// Set up the texture
unsigned long tid;
[MasterOpenGLContext() makeCurrentContext]; // This gets the shared
context
glGenTextures(1, &tid);
glBindTexture(kRenderTexTarget, tid);
switch (gR2TMode) {
case kWGLPBuffer:
case kCopyTex:
....
case kNSView:
[MasterOpenGLContext() update];
[MasterOpenGLContext() createTexture: tid fromView: [surfaceWindow
contentView] internalFormat: GL_RGBA];
GLAssert ();
break;
}
TIA,
Nicholas Francis
www.otee.dk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden