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
1 answer

NSOpenGLView Cocoa (again)

I'm new to the whole Cocoa/Objective-C malarky (but have years of C/C++ on *nix). I'm trying to create a basic Cocoa application that is filled with an NSOpenGLView. I have: chink.mm #import #import "chink.h" @implementation…
fūjin
  • 179
  • 9
0
votes
0 answers

OpenGL Picking not work in NSOpenGLView

I Am trying to implement picking in a NSOpenGLView , but not works, this is the code. I render only the objects that I need pick with no lights and I render the scene as same in normal render. - (void)drawSeleccion { NSSize size = [self…
Menio
  • 61
  • 7
0
votes
1 answer

Problems with an unusual NSOpenGLView setup

I'm trying to set a subclassed NSOpenGLView in an unusual way and I am running into some problems. Basically, I am writing a program to perform a bioengineering simulation for my PhD and I need to be able to compile it under both MacOSX and Unix (my…
0
votes
1 answer

Trouble sharing textures with OpenGL/Cocoa

I am a bit of an openGL novice and I am trying to get texture sharing to work between two openGL views. I created two NSOpenGL view classes and then in the interface builder I created a window that had one of each openGL view. The first view has…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
0
votes
1 answer

NSWindow titlebar turns white when resizeing

I'm programatically resizing my NSWindow containing an NSOpenGLView. The window resizes, the NSOpenGLView is handling the resizing fine, but the titlebar of the NSWindow turns completely white. However the buttons (minimize,...) can be clicked,…
flubba
  • 125
  • 7
0
votes
1 answer

Determing if an NSOpenGLView has a valid context (Cocoa OSX)

I am trying to check that my NSOpenGLView has a valid context but it seems that a call to openGLContext will not help me figure this out. openGLContext seems to always returns a an NsOpenGlContext (it returns the current context if the view has one…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
0
votes
1 answer

NSOpenGLView - View not refreshing until i move the window

I'm really tearing my head out on this one! I'm subclassing NSOpenGLView to do some animations on the view. When i say animations, i mean that am moving some images from left to right of the view and so on. This is what i do a) Initialise the OpenGL…
KamyFC
  • 858
  • 9
  • 17
0
votes
0 answers

QCRenderer.renderAtTime fails with 'invalid framebuffer operation'

I initialize my QCRenderer like this: let glPFAttributes:[NSOpenGLPixelFormatAttribute] = [ UInt32(NSOpenGLPFABackingStore), UInt32(0) ] let glPixelFormat = NSOpenGLPixelFormat(attributes: glPFAttributes) if glPixelFormat == nil { …
Peter W.
  • 2,323
  • 4
  • 22
  • 42
0
votes
0 answers

Synchronize flushBuffer of two NSOpenGLViews

I'm working on an OSX app that is made of two NSOpengGLViews (leftGLView and rightGLView) placed side-by-side inside the NSWindow contentView. The two views don't share the NSOpenGLContext but are both double-buffered and sync the buffer swap with…
Andrea3000
  • 1,018
  • 1
  • 11
  • 26
0
votes
0 answers

How to draw RGB image buffer or CVPixelBufferRef on NSOpenGLView?

I have NSOpenGLView on form and frame buffer event from AVFoundation. I want to show video frames on my form using OpenGL View.
roman.minyaylov
  • 203
  • 1
  • 9
0
votes
1 answer

OpenGL: Can see through one wall but not the other

I do not know whether this is a depth buffer issue or another. I can see through one wall but not another: Now when I rotate so the second wall becomes more prominent: I have the depth buffer enabled in Interface Builder. My OGL enables look like…
xBACP
  • 531
  • 1
  • 3
  • 17
0
votes
1 answer

Drawing QTMovie's texture twice with OpenGL

I'm currently using OpenGL to display my QTMovie's frames into an NSOpenGLView. In order to do that, I'm creating a texture context with the following code: // Called from a subclass of NSOpenGLView QTOpenGLTextureContextCreate(kCFAllocatorDefault, …
guitarflow
  • 2,930
  • 25
  • 38
0
votes
1 answer

OpenGL and Cocoa not Working

I am trying to draw a very simple blue square with a red background in OpenGL using an NSOpenGL on Mountain Lion. The code is simple and should work, I'm assuming it's a problem with me setting up the context. Here is my GLView interface: #import…
foobar5512
  • 2,470
  • 5
  • 36
  • 52
0
votes
1 answer

How do I create an instance of a designed object in Objective-C?

I'm writing an application that will require multiple windows. I've designed how I want my window to look in Interface Builder and when I start my application it all looks as it should. I've got a large library of C++ code that I've been making use…
0
votes
2 answers

NSOpenGLView toggle to fullscreen from within the view

I'm trying to create a method that will toggle between fullscreen and a window. I'm trying to do this from within a class inherited from NSOpenGLView, essentially following this blogpost. That works once, going from windowed to fullscreen; trying to…
user707650