Questions tagged [nsopenglview]

NSOpenGLView is an NSView subclass in the Apple Appkit framework. It provides an easy way to create an OpenGL context and embed it inside a Cocoa application.

Apple Documentation:

https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSOpenGLView_Class/Reference/Reference.html

82 questions
0
votes
0 answers

Adding more number of View and NSOpenGLView in NSWindow

I need to add more number of NSView along with more number of customised NSOpenGLView in a window and then wants to shuffle the array of views. If I set the base view setWantsLayer:YES initially, I can't draw the OpenGLView if I set…
0
votes
2 answers

Cocos2D z-index issue with openGLView

I have a UITableView that shows scores and names. I also have animated objects that move around the screen.. However they go under the tableview and not visible no matter what z-index value that have.. How can I make the animated objects go on top…
user123
  • 2,711
  • 5
  • 21
  • 25
0
votes
1 answer

Render OpenGL on background thread and still work with Cocoa Controls in Mac OSX

I am working on a mac osx control that is OpenGL based. Currently I am using an NSOpenGLView and a CVDisplayLink to coordinate my rendering on a background thread. This works great, but I need to allow Cocoa controls to be displayed over this OpenGL…
0
votes
1 answer

How of use glBlendFunc to approximate a Photoshop Difference composite?

I am compositing one image on another using glBlendFunc() trying to approximate photoshop's difference compositing feature. I want similarities in the two images to be black while anything different pops out. As I understand the glBlendfunc() is…
kernelK
  • 189
  • 1
  • 3
  • 14
-1
votes
1 answer

Rendering OpenGL within an NSView subclass does not render

I have existing code that uses an NSOpenGLView. I would like to instead utilise a subclassed NSView controller, and I'm hiting a few walls (not least since OpenGL is long deprecated on Mac. I am persisting still). I figured to explore this example…
Tim Kane
  • 2,599
  • 3
  • 20
  • 19
-1
votes
1 answer

OpenGL Render to texture

I know this has been asked before (I did search) but I promise you this one is different. I am making an app for Mac OS X Mountain Lion, but I need to add a little bit of a bloom effect. I need to render the entire scene to a texture the size of the…
Justin
  • 2,122
  • 3
  • 27
  • 47
-1
votes
1 answer

OpenGLView fails to display

I have followed this guide. Whereas I sincerely failed to understand what it says at point 13, I just have opened the pane of the inspector, but it doesn't say what attributes to set. However, I have copied and pasted the code in the proper…
Ramy Al Zuhouri
  • 21,580
  • 26
  • 105
  • 187
1 2 3 4 5
6