nsopenglview Questions

3

Solved

If you create an NSView and a custom NSOpenGLContext on macOS Mojave, the window is not being rendered to until it is being resized. But everything works if you use NSOpenGLView instead. I see lots...
Scrophulariaceous asked 22/10, 2018 at 22:22

7

Solved

I have made a window with an NSOpenGLView that I am rendering openGL content into. I want to add some buttons and text fields to the view: I can add NSTextFields and NSButtons using interface buil...
Kudva asked 8/2, 2010 at 12:16

1

Solved

Apparently I'm the only one to attempt this, as none of my Google searches turned up anything helpful. Assume I'm initializing an attribute array like this: let glPFAttributes = [ NSOpenGLPFAAcce...
Wellbalanced asked 25/10, 2014 at 14:17

3

Here is the deal: If I leave the code with glGenBuffers(1, vertexBuffers), the code compiles and works. But, I thought that it should be 2 since vertexBuffers is of size two. Am I missing somethi...
Robinet asked 24/8, 2012 at 3:45

1

Solved

How would I create a core profile in a custom implementation of NSOpenGLView? Which method should I override and what code should I put there? So far I have this code: // Header File #import <...
Contain asked 22/7, 2012 at 17:24

1

Solved

I'm working on an app which needs to draw with OpengGL at a refresh rate at least equal to the refresh rate of the monitor. And I need to perform the drawing in a separate thread so that drawing is...
Guereza asked 25/2, 2012 at 8:52

1

Solved

I have a window with a main view of type NSView and a subview which is a subclass of NSOpenGLView whose name is CustomOpenGLView. The subclass of NSOpenGLView is obtained through a Custom View in I...
Duester asked 30/9, 2011 at 12:8

2

Solved

So im trying to create an openGL view (in my window). Im making a Cocoa app. Ive managed to create one through Interface Builder, but for educational purposes i want to go on and make one without i...
Impenetrability asked 19/12, 2011 at 9:46
1

© 2022 - 2024 — McMap. All rights reserved.