Click here to Skip to main content
15,881,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Intellisense question - function headers Pin
Maxwell Chen6-May-06 9:13
Maxwell Chen6-May-06 9:13 
GeneralRe: Intellisense question - function headers Pin
Phil Francis6-May-06 15:34
Phil Francis6-May-06 15:34 
AnswerRe: Intellisense question - function headers Pin
Maxwell Chen6-May-06 16:06
Maxwell Chen6-May-06 16:06 
AnswerRe: Intellisense question - function headers Pin
Gary R. Wheeler7-May-06 4:22
Gary R. Wheeler7-May-06 4:22 
QuestionChange Gamma Ramp Pin
Robsori6-May-06 4:41
Robsori6-May-06 4:41 
AnswerRe: Change Gamma Ramp Pin
Chris Losinger6-May-06 16:10
professionalChris Losinger6-May-06 16:10 
GeneralRe: Change Gamma Ramp Pin
Robsori6-May-06 21:33
Robsori6-May-06 21:33 
QuestionGDI/GDI+ In Flight Simulator 2004 Pin
seefer6-May-06 3:46
seefer6-May-06 3:46 
Hi all.

I've seen some very helpful GDI/GDI+ arrticles on here which have helped me immensely. However I have what may be an unusual question.

I'm an avid Flight Simulator 2004 fan and have started to dabble in creating my own airfcraft avionics systems and gauges written in C/C++. However, I'm finding that in order to implement some of the more complex avionics systems seen in many 'glass cockpit' aircraft today, I need a fast 2D vector drawing approach.

FS2004 implements user-created avionics displays and gauges as DLLs that expose a number of callback functions in order to draw the graphics. However, it seems that FS2004 is limiting the gauge drawing graphics to a GDI/GDI+ surface, even though FS2004 does actually use Direct3D for the main external display showing the terrain.

I have the following questions:

Is there a way to draw to a GDI/GDI+ suface using hardware accelerated DirectX calls? I have noticed that in the gdiplus.h header file there is a declaration for a IDirectDrawSurface7 structure, hence my theory that I may be able to use DirectX instead of GDI to draw to the surface that FS2004 uses for gauges.

If not, am I better off sticking to GDI rather than GDI+ as GDI allegedly makes more use of hardware acceleration than GDI+?

Finally, can anyone recommend a high performance, open source, realtime vector drawing API that I could turn to in order to provide the actual line and 2D shape drawing routines to represent some of today's avionics displays?

Many thanks

DE
AnswerRe: GDI/GDI+ In Flight Simulator 2004 Pin
Jim Crafton6-May-06 17:48
Jim Crafton6-May-06 17:48 
GeneralRe: GDI/GDI+ In Flight Simulator 2004 Pin
seefer7-May-06 2:11
seefer7-May-06 2:11 
Questionconvert int to string Pin
sunita ramesh6-May-06 2:58
sunita ramesh6-May-06 2:58 
AnswerRe: convert int to string Pin
Stephen Hewitt6-May-06 3:10
Stephen Hewitt6-May-06 3:10 
GeneralRe: convert int to string Pin
sunita ramesh6-May-06 18:37
sunita ramesh6-May-06 18:37 
GeneralRe: convert int to string Pin
Stephen Hewitt6-May-06 19:36
Stephen Hewitt6-May-06 19:36 
AnswerRe: convert int to string Pin
_AnsHUMAN_ 6-May-06 3:59
_AnsHUMAN_ 6-May-06 3:59 
AnswerRe: convert int to string Pin
ThatsAlok6-May-06 22:45
ThatsAlok6-May-06 22:45 
AnswerRe: convert int to string Pin
Osama E. Adly7-May-06 4:18
Osama E. Adly7-May-06 4:18 
AnswerRe: convert int to string Pin
Hamid_RT7-May-06 18:16
Hamid_RT7-May-06 18:16 
QuestionText exchange VB 16 bit / VC 32 Pin
Dihirk6-May-06 2:53
Dihirk6-May-06 2:53 
AnswerRe: Text exchange VB 16 bit / VC 32 Pin
Milton Karimbekallil6-May-06 5:16
Milton Karimbekallil6-May-06 5:16 
GeneralRe: Text exchange VB 16 bit / VC 32 Pin
Dihirk6-May-06 5:34
Dihirk6-May-06 5:34 
GeneralRe: Text exchange VB 16 bit / VC 32 Pin
Milton Karimbekallil6-May-06 5:47
Milton Karimbekallil6-May-06 5:47 
GeneralRe: Text exchange VB 16 bit / VC 32 Pin
Dihirk6-May-06 22:55
Dihirk6-May-06 22:55 
GeneralRe: Text exchange VB 16 bit / VC 32 Pin
Dihirk7-May-06 2:47
Dihirk7-May-06 2:47 
GeneralRe: Text exchange VB 16 bit / VC 32 Pin
Maxwell Chen7-May-06 2:53
Maxwell Chen7-May-06 2:53 

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.