Click here to Skip to main content
15,439,962 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCSplitterWnd with MDI Child Windows Pin
Member 1327791131-Jul-17 3:25
MemberMember 1327791131-Jul-17 3:25 
QuestionRe: CSplitterWnd with MDI Child Windows Pin
David Crow31-Jul-17 3:49
MemberDavid Crow31-Jul-17 3:49 
AnswerRe: CSplitterWnd with MDI Child Windows Pin
Member 1327791131-Jul-17 5:49
MemberMember 1327791131-Jul-17 5:49 
AnswerRe: CSplitterWnd with MDI Child Windows Pin
Member 1327791131-Jul-17 19:45
MemberMember 1327791131-Jul-17 19:45 
QuestionGood or Bad Idea: C++ OpenGL Application using PureMVC? Pin
DBPatric29-Jul-17 5:38
MemberDBPatric29-Jul-17 5:38 
AnswerRe: Good or Bad Idea: C++ OpenGL Application using PureMVC? Pin
leon de boer30-Jul-17 3:52
Memberleon de boer30-Jul-17 3:52 
GeneralRe: Good or Bad Idea: C++ OpenGL Application using PureMVC? Pin
DBPatric9-Aug-17 13:49
MemberDBPatric9-Aug-17 13:49 
GeneralRe: Good or Bad Idea: C++ OpenGL Application using PureMVC? Pin
leon de boer11-Aug-17 16:29
Memberleon de boer11-Aug-17 16:29 
I will assume you are working with new OpenGL 3.3+ (If you aren't you need to switch now) you will have what amounts to a pile of Function pointers you will have got with wglGetProcAddress. Usually what you need to do is first start with that and put them in a class or object. Then build functionality on the class/object interface because you have everything contained. If you aren't comfortable with doing it yourself then use a library like GLEW which will wrangle all the function pointers for you. GLEW isn't great because you can't extend it easily but it's better than nothing.

If you haven't wrangled all the function pointers into a sort of API that is where you start.

Once you do that at a minimum you will be able to attach/change shaders and apply the matrixes to that class/object and it will store internally whatever it needs.

I usually set the class/object creation to take a window handle being the window you want to bind the OpenGL onto. The reason for doing that is when you run multiple windows each window will have it's own render context so you might as well bind the window into your object at construction. If you are using just one main OpenGL window the step will seem to have little benefit but the moment you start with multiple OpenGL windows you will get why you do it.
In vino veritas

QuestionDeclare member variable on stack or heap Pin
_Flaviu24-Jul-17 21:06
Member_Flaviu24-Jul-17 21:06 
AnswerRe: Declare member variable on stack or heap Pin
Richard MacCutchan24-Jul-17 22:22
mveRichard MacCutchan24-Jul-17 22:22 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu24-Jul-17 23:03
Member_Flaviu24-Jul-17 23:03 
GeneralRe: Declare member variable on stack or heap Pin
Richard MacCutchan24-Jul-17 23:09
mveRichard MacCutchan24-Jul-17 23:09 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu25-Jul-17 0:13
Member_Flaviu25-Jul-17 0:13 
GeneralRe: Declare member variable on stack or heap Pin
Richard MacCutchan25-Jul-17 0:31
mveRichard MacCutchan25-Jul-17 0:31 
AnswerRe: Declare member variable on stack or heap Pin
Victor Nijegorodov24-Jul-17 23:15
MemberVictor Nijegorodov24-Jul-17 23:15 
GeneralRe: Declare member variable on stack or heap Pin
_Flaviu25-Jul-17 0:09
Member_Flaviu25-Jul-17 0:09 
GeneralRe: Declare member variable on stack or heap Pin
Victor Nijegorodov9-Aug-17 1:21
MemberVictor Nijegorodov9-Aug-17 1:21 
QuestionIDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp24-Jul-17 19:42
Member002comp24-Jul-17 19:42 
AnswerRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
Jochen Arndt24-Jul-17 21:19
professionalJochen Arndt24-Jul-17 21:19 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp24-Jul-17 23:03
Member002comp24-Jul-17 23:03 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp25-Jul-17 19:36
Member002comp25-Jul-17 19:36 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
Jochen Arndt25-Jul-17 20:57
professionalJochen Arndt25-Jul-17 20:57 
GeneralRe: IDirect3DSurface9 Problem after Windows 10 Update Creator Pin
002comp25-Jul-17 21:19
Member002comp25-Jul-17 21:19 
QuestionC++ ActiveX project worked with VB6, broken in later versions Pin
Burl Rice22-Jul-17 10:30
MemberBurl Rice22-Jul-17 10:30 
AnswerRe: C++ ActiveX project worked with VB6, broken in later versions Pin
Richard MacCutchan22-Jul-17 20:29
mveRichard MacCutchan22-Jul-17 20:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.