Click here to Skip to main content
15,900,724 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Sorting colors Pin
Nishad S30-Jul-10 3:30
Nishad S30-Jul-10 3:30 
QuestionPage layout library Pin
CodeBrain18-Jun-10 23:09
CodeBrain18-Jun-10 23:09 
QuestionDirect2d CB 6.0 error Pin
VovaL3-Jun-10 2:54
VovaL3-Jun-10 2:54 
AnswerRe: Direct2d CB 6.0 error Pin
Luc Pattyn3-Jun-10 3:08
sitebuilderLuc Pattyn3-Jun-10 3:08 
GeneralRe: Direct2d CB 6.0 error Pin
VovaL3-Jun-10 5:44
VovaL3-Jun-10 5:44 
AnswerRe: Direct2d CB 6.0 error Pin
Pete O'Hanlon3-Jun-10 3:17
mvePete O'Hanlon3-Jun-10 3:17 
QuestionSome questions Pin
Mountainking0229-May-10 3:40
Mountainking0229-May-10 3:40 
AnswerRe: Some questions Pin
Anthony Mushrow29-May-10 4:05
professionalAnthony Mushrow29-May-10 4:05 
If you're using C# then you won't actually have to use DirectX directly (I don't even think you can anymore), you'll be able to use XNA which is much simpler to use and is a lot quicker to set up. I've not used XNA a whole lot but I do remember that everything was fairly simple, including rendering images and text and whatnot. Although I have worked with Direct3D a fair bit, so you may have a slighty tougher time.

It would be well worth your time to take a quick look at some XNA tutorials, it won't take you long to get something up and running and you'll be able to make an informed decision on whether or not you really want to be using XNA / DirectX.

http://www.riemers.net/[^] Has an excellent set of tutorials that would cover almost anything you might want. The only thing I'm not to sure of is printing anything you render, but I imagine it's fairly trivial to render to a bitmap.

If you really want to use Direct3D with C++ then...

Mountainking02 wrote:
1.) Is it a problem to render different FontFamilies?


Rendering text in Direct3D is actually incredibly simple, as long as the font is on the machine DirectX will pretty much sort it all out for you:
LPD3DXFONT myFont;
D3DXCreateFont(..., &myFont) //Takes all of the params such as italic, bold, font etc and fills in a pointer to a font
myFont->DrawText(...);


You should set up any fonts you may want to use when the application starts then re-use them until the your application closes (at which point you should release them)

Mountainking02 wrote:
2.) Direct2D uses geometries wich can be combined. Can i resolve this function in Direct3D easily, too?


I'm not sure, I've never used Direct2D or DirectDraw, all I know is that everything in Direct3D is done with vertices. If you want a square you'll need to set up 4 vertices that make a square (more precisely, you'll need to make two triangles out of the 4 vertices which will make up your square)

Mountainking02 wrote:
3.) What about printing (the printout is bigger as the visual part on the screen). Can i render the hole scene to a huge bitmap for example, which i can print?


I'm not sure if you can use any DirectX stuff to print directly, but for certain you can render to a Texture and then copy the data from that Texture to something that you can print with.
My current favourite quote is: Punch them in the face, see what happens!
-SK Genius


modified on Saturday, May 29, 2010 10:27 AM

GeneralRe: Some questions Pin
Mountainking0230-May-10 10:04
Mountainking0230-May-10 10:04 
QuestionResize Image Pin
Archimedes2412-May-10 3:05
professionalArchimedes2412-May-10 3:05 
AnswerRe: Resize Image Pin
Luc Pattyn12-May-10 3:59
sitebuilderLuc Pattyn12-May-10 3:59 
AnswerRe: Resize Image Pin
El Corazon25-May-10 14:49
El Corazon25-May-10 14:49 
QuestionColor Separations for Printers Pin
Roger Wright5-May-10 5:24
professionalRoger Wright5-May-10 5:24 
AnswerRe: Color Separations for Printers Pin
Luc Pattyn5-May-10 6:36
sitebuilderLuc Pattyn5-May-10 6:36 
GeneralRe: Color Separations for Printers Pin
Roger Wright5-May-10 7:50
professionalRoger Wright5-May-10 7:50 
GeneralRe: Color Separations for Printers Pin
Luc Pattyn5-May-10 7:56
sitebuilderLuc Pattyn5-May-10 7:56 
GeneralRe: Color Separations for Printers Pin
Roger Wright5-May-10 8:44
professionalRoger Wright5-May-10 8:44 
AnswerRe: Color Separations for Printers Pin
enhzflep27-Dec-10 3:04
enhzflep27-Dec-10 3:04 
QuestionCaptureFrame inside Thread Pin
anki12315-Apr-10 3:19
anki12315-Apr-10 3:19 
AnswerRe: CaptureFrame inside Thread Pin
Member 360140912-Jan-11 0:16
Member 360140912-Jan-11 0:16 
QuestionCreate a gui for linux. Pin
krish_kumar11-Mar-10 18:55
krish_kumar11-Mar-10 18:55 
AnswerRe: Create a gui for linux. [modified] Pin
Saurabh.Garg26-Mar-10 18:50
Saurabh.Garg26-Mar-10 18:50 
QuestionManaged DX vs Unmanaged DX vs XNA Framework Pin
Shelby Robertson 23-Feb-10 4:51
Shelby Robertson 23-Feb-10 4:51 
AnswerRe: Managed DX vs Unmanaged DX vs XNA Framework Pin
ely_bob1-Mar-10 8:35
professionalely_bob1-Mar-10 8:35 
QuestionDirectX: Resoution glitch after switching from fullscreen to windowed mode Pin
Aschratt23-Feb-10 3:51
Aschratt23-Feb-10 3:51 

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.