Page 1 of 1
New member in gapidraw
Posted:
Mar 16, 2010 @ 8:12pm
by stratus
Posted:
Mar 19, 2010 @ 4:01pm
by Johan
Hello Stratus,
What you need to do is to redraw the entire screen, including the background. Typically you do a loop as follows:
1. Draw everything on screen to a CGapiSurface that is the same size as the screen (this surface is typically called the "back buffer")
2. Copy the "back buffer" surface to the screen using CGapiSurface::BltFast
3. Wait a few milliseconds
4. Go to #1
This is how most interactive applications work.
Sincerely
Johan
Posted:
Mar 20, 2010 @ 9:34am
by stratus
[quote="Johan"]Hello Stratus,
Thank you for your answer.I have one more question.I want to draw text with greek letters.I thought to use the Drawtext api using GetDC function.Is it going to work this approach;
Posted:
Mar 21, 2010 @ 8:14am
by Johan
Hello again,
Yes, using GetDC to draw text would work great!
If you decide to buy GapiDraw we have a special licensed version of GapiDraw 4.2 that stores all surfaces as DIB surfaces, meaning that GetDC will take 0 milliseconds overhead to call. This is very useful if you use a lot of GetDC calls.
Send me a PM and I can describe it in more detail for you.
Sincerely
Johan