bobobobo
bobobobo

Reputation: 67376

Graphics primitive generators

I'm looking for something that can generate primitives (e.g. rounded rectangles for dialog boxes etc) so I can load them into a DirectX textured Sprite. Functionality is like SPriG.

Upvotes: 1

Views: 262

Answers (1)

feal87
feal87

Reputation: 947

Its pretty easy and there are 2 ways :

1) If you are using DirectX10+ use Direct2D.

2) Use GDI+ to draw them onto a texture.

Both are integrated with the system and do not need for any external library. Just pick and use.

As far as Direct2D, I don't know all the details, but I can assure you can do whatever you want with GDI+. (You generate them once, so you don't care about speed)

Upvotes: 1

Related Questions