Omegascreen
Properties
BBCount
This is the BackBufferCount - you can leave it at 0.
bpp
It is Bits per Pixel, you may set this to 8, 16 or 32 bits per pixel.
FullScreen
With this Property set to True, your application will run in Fullscreen mode else
you may run it in Windowed mode.
Height and Width
These are the dimensions of your Omegascreen. You may choose any width and height
here. Make sure that your width is larger than your height though.
Name
The name of your Omegascreen
Tag
This one is free for your own use and does nothing.
ZBuffer
It is Z buffer. You can switch it on or off, depending on your graphic card. Used
really only for 3d stuff, I would leave it false.
Some methods
OmegaScreen.SethWnd(Form.Handle);
Omegascreen.Init;
Important:
Use this to initialize your Omegascreen, the parameter is the handle of the form,
your Omegascreen is assigned to.
Omegascreen.BeginRender;
Omegascreen.ClearScreen(0,0,0,255);
In your OnTimer method you start rendering with the BeginRender command
and you can clear the screen to Black.
You can choose every RGB-value as a parameter for Clearscreen, the 4th value is
for Alpha.
Omegascreen.EndRender;
After you did all the drawing you end the rendering with EndRender.
Omegascreen.SetTarget;
If you are using OmegaSurfaces in your program, in order to know what rendering
surface you want to draw to you have to do OmegaScreen.SetTarget, or OmegaSurface.SetTarget
to the respective target that you want to render to. You must do this before you
render to each target to insure that you are rendering to the right place.
Back to the Index