C# Class Vocaluxe.Lib.Draw.COpenGL

Inheritance: System.Windows.Forms.Form, IDraw
Show file Open project: stsundermann/Vocaluxe

Public Methods

Method Description
AddTexture ( Bitmap bmp ) : Vocaluxe.Lib.Draw.STexture
AddTexture ( Bitmap bmp, string TexturePath ) : Vocaluxe.Lib.Draw.STexture
AddTexture ( int W, int H, IntPtr Data ) : Vocaluxe.Lib.Draw.STexture
AddTexture ( int W, int H, byte &Data ) : Vocaluxe.Lib.Draw.STexture
AddTexture ( string TexturePath ) : Vocaluxe.Lib.Draw.STexture
COpenGL ( ) : System
ClearScreen ( ) : void
CopyScreen ( ) : Vocaluxe.Lib.Draw.STexture
CopyScreen ( Vocaluxe.Lib.Draw.STexture &Texture ) : void
DrawColor ( Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF rect ) : void
DrawLine ( int a, int r, int g, int b, int w, int x1, int y1, int x2, int y2 ) : void
DrawText ( string Text, int x, int y, float h, float z ) : void
DrawText ( string Text, int x, int y, int h ) : void
DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture ) : void
DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect ) : void
DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color ) : void
DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF bounds ) : void
DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF bounds, bool mirrored ) : void
DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, bool mirrored ) : void
DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, float begin, float end ) : void
DrawTextureReflection ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF bounds, float space, float height ) : void
GetScreenHeight ( ) : int
GetScreenWidth ( ) : int
GetTextBounds ( Vocaluxe.Menu.CText text ) : RectangleF
GetTextBounds ( Vocaluxe.Menu.CText text, float Height ) : RectangleF
Init ( ) : bool
MainLoop ( ) : void
MakeScreenShot ( ) : void
QuequeTexture ( int W, int H, byte &Data ) : Vocaluxe.Lib.Draw.STexture
RemoveTexture ( Vocaluxe.Lib.Draw.STexture &Texture ) : void
TextureCount ( ) : int
Unload ( ) : bool
UpdateTexture ( Vocaluxe.Lib.Draw.STexture &Texture, IntPtr Data ) : bool
UpdateTexture ( Vocaluxe.Lib.Draw.STexture &Texture, byte &Data ) : bool

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void
OnResize ( EventArgs e ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
CheckAntiAliasingMode ( int SetValue ) : int
CheckColorDeep ( int SetValue ) : int
CheckQueque ( ) : void
EnterFullScreen ( ) : void
LeaveFullScreen ( ) : void
OnClosingEvent ( object sender, CancelEventArgs e ) : void
OnKeyDownEvent ( object sender, System e ) : void
OnKeyPressEvent ( object sender, System e ) : void
OnKeyUpEvent ( object sender, System e ) : void
OnMouseDown ( object sender, MouseEventArgs e ) : void
OnMouseEnter ( object sender, EventArgs e ) : void
OnMouseLeave ( object sender, EventArgs e ) : void
OnMouseMove ( object sender, MouseEventArgs e ) : void
OnMouseUp ( object sender, MouseEventArgs e ) : void
OnMouseWheel ( object sender, MouseEventArgs e ) : void
OnPaintEvent ( object sender, PaintEventArgs e ) : void
OnPreviewKeyDownEvent ( object sender, System e ) : void
OnResizeEvent ( object sender, EventArgs e ) : void
RResize ( ) : void
ToggleFullScreen ( ) : void
_TextureExists ( Vocaluxe.Lib.Draw.STexture &Texture ) : bool

Method Details

AddTexture() public method

public AddTexture ( Bitmap bmp ) : Vocaluxe.Lib.Draw.STexture
bmp System.Drawing.Bitmap
return Vocaluxe.Lib.Draw.STexture

AddTexture() public method

public AddTexture ( Bitmap bmp, string TexturePath ) : Vocaluxe.Lib.Draw.STexture
bmp System.Drawing.Bitmap
TexturePath string
return Vocaluxe.Lib.Draw.STexture

AddTexture() public method

public AddTexture ( int W, int H, IntPtr Data ) : Vocaluxe.Lib.Draw.STexture
W int
H int
Data System.IntPtr
return Vocaluxe.Lib.Draw.STexture

AddTexture() public method

public AddTexture ( int W, int H, byte &Data ) : Vocaluxe.Lib.Draw.STexture
W int
H int
Data byte
return Vocaluxe.Lib.Draw.STexture

AddTexture() public method

public AddTexture ( string TexturePath ) : Vocaluxe.Lib.Draw.STexture
TexturePath string
return Vocaluxe.Lib.Draw.STexture

COpenGL() public method

public COpenGL ( ) : System
return System

ClearScreen() public method

public ClearScreen ( ) : void
return void

CopyScreen() public method

public CopyScreen ( ) : Vocaluxe.Lib.Draw.STexture
return Vocaluxe.Lib.Draw.STexture

CopyScreen() public method

public CopyScreen ( Vocaluxe.Lib.Draw.STexture &Texture ) : void
Texture Vocaluxe.Lib.Draw.STexture
return void

DrawColor() public method

public DrawColor ( Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF rect ) : void
color Vocaluxe.Lib.Draw.SColorF
rect Vocaluxe.Lib.Draw.SRectF
return void

DrawLine() public method

public DrawLine ( int a, int r, int g, int b, int w, int x1, int y1, int x2, int y2 ) : void
a int
r int
g int
b int
w int
x1 int
y1 int
x2 int
y2 int
return void

DrawText() public method

public DrawText ( string Text, int x, int y, float h, float z ) : void
Text string
x int
y int
h float
z float
return void

DrawText() public method

public DrawText ( string Text, int x, int y, int h ) : void
Text string
x int
y int
h int
return void

DrawTexture() public method

public DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture ) : void
Texture Vocaluxe.Lib.Draw.STexture
return void

DrawTexture() public method

public DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect ) : void
Texture Vocaluxe.Lib.Draw.STexture
rect Vocaluxe.Lib.Draw.SRectF
return void

DrawTexture() public method

public DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color ) : void
Texture Vocaluxe.Lib.Draw.STexture
rect Vocaluxe.Lib.Draw.SRectF
color Vocaluxe.Lib.Draw.SColorF
return void

DrawTexture() public method

public DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF bounds ) : void
Texture Vocaluxe.Lib.Draw.STexture
rect Vocaluxe.Lib.Draw.SRectF
color Vocaluxe.Lib.Draw.SColorF
bounds Vocaluxe.Lib.Draw.SRectF
return void

DrawTexture() public method

public DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF bounds, bool mirrored ) : void
Texture Vocaluxe.Lib.Draw.STexture
rect Vocaluxe.Lib.Draw.SRectF
color Vocaluxe.Lib.Draw.SColorF
bounds Vocaluxe.Lib.Draw.SRectF
mirrored bool
return void

DrawTexture() public method

public DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, bool mirrored ) : void
Texture Vocaluxe.Lib.Draw.STexture
rect Vocaluxe.Lib.Draw.SRectF
color Vocaluxe.Lib.Draw.SColorF
mirrored bool
return void

DrawTexture() public method

public DrawTexture ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, float begin, float end ) : void
Texture Vocaluxe.Lib.Draw.STexture
rect Vocaluxe.Lib.Draw.SRectF
color Vocaluxe.Lib.Draw.SColorF
begin float
end float
return void

DrawTextureReflection() public method

public DrawTextureReflection ( Vocaluxe.Lib.Draw.STexture Texture, Vocaluxe.Lib.Draw.SRectF rect, Vocaluxe.Lib.Draw.SColorF color, Vocaluxe.Lib.Draw.SRectF bounds, float space, float height ) : void
Texture Vocaluxe.Lib.Draw.STexture
rect Vocaluxe.Lib.Draw.SRectF
color Vocaluxe.Lib.Draw.SColorF
bounds Vocaluxe.Lib.Draw.SRectF
space float
height float
return void

GetScreenHeight() public method

public GetScreenHeight ( ) : int
return int

GetScreenWidth() public method

public GetScreenWidth ( ) : int
return int

GetTextBounds() public method

public GetTextBounds ( Vocaluxe.Menu.CText text ) : RectangleF
text Vocaluxe.Menu.CText
return System.Drawing.RectangleF

GetTextBounds() public method

public GetTextBounds ( Vocaluxe.Menu.CText text, float Height ) : RectangleF
text Vocaluxe.Menu.CText
Height float
return System.Drawing.RectangleF

Init() public method

public Init ( ) : bool
return bool

MainLoop() public method

public MainLoop ( ) : void
return void

MakeScreenShot() public method

public MakeScreenShot ( ) : void
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

QuequeTexture() public method

public QuequeTexture ( int W, int H, byte &Data ) : Vocaluxe.Lib.Draw.STexture
W int
H int
Data byte
return Vocaluxe.Lib.Draw.STexture

RemoveTexture() public method

public RemoveTexture ( Vocaluxe.Lib.Draw.STexture &Texture ) : void
Texture Vocaluxe.Lib.Draw.STexture
return void

TextureCount() public method

public TextureCount ( ) : int
return int

Unload() public method

public Unload ( ) : bool
return bool

UpdateTexture() public method

public UpdateTexture ( Vocaluxe.Lib.Draw.STexture &Texture, IntPtr Data ) : bool
Texture Vocaluxe.Lib.Draw.STexture
Data System.IntPtr
return bool

UpdateTexture() public method

public UpdateTexture ( Vocaluxe.Lib.Draw.STexture &Texture, byte &Data ) : bool
Texture Vocaluxe.Lib.Draw.STexture
Data byte
return bool

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void