I'm new, only started learning this system and I have few questions
Mostly I using DirectX 9 and functional I'm asking about available using it
Can I use CEGUI rendering system to draw:
1) Primitives (rectangle, circle, triangle and etc.)? (DrawPrimitiveUP)
2) Pictures (with rotation, scalling, color modulation)? (ID3DXSprite)
3) Text (with shadow/border, size calculation)? (ID3DXFont)
Can I draw in different modes:
1) Immediate mode, draw at the moment I called the function, when I working at the main thread?
Code: Select all
example:
renderer.drawTriangleFill(x1, y1, x2, y2, x3, y3, color1, color2, color3);
renderer.drawRectangleContour(x, y, w, h, thickness, color);
...
2) Listing mode, collect commands I need to render at one thread and draw it in main thread?
Code: Select all
example:
RenderList list;
list.pushRectangleFill(x, y, w, h, colorlt, colortr, colorbr, colorlb);
list.pushPicture(texture, x, y, scalex, scaley, rot);
...
renderer.drawList(list);
I have this functional partially only in DirectX 9, but maybe this engine can do it universally?
Is it possible in this engine and if it is how to use it right?
Thank you
P.S. English not my native language, so I'm sorry if I'm not correct