Click here to Skip to main content
15,896,437 members
Home / Discussions / C#
   

C#

 
AnswerRe: Serializing the same object instance twice... Pin
Shy Agam20-Jun-07 0:38
Shy Agam20-Jun-07 0:38 
Questionflicker free fast moving images Pin
wolf70719-Jun-07 23:53
wolf70719-Jun-07 23:53 
AnswerRe: flicker free fast moving images Pin
Martin#20-Jun-07 0:03
Martin#20-Jun-07 0:03 
QuestionCustomizing the grid columns Pin
minkinin19-Jun-07 23:23
minkinin19-Jun-07 23:23 
QuestionUse of trignometric func.??-----------help urgent Pin
Raza568019-Jun-07 23:17
Raza568019-Jun-07 23:17 
AnswerRe: Use of trignometric func.??-----------help urgent Pin
Giorgi Dalakishvili19-Jun-07 23:28
mentorGiorgi Dalakishvili19-Jun-07 23:28 
QuestionZooming in C# using opengl Pin
a_david12319-Jun-07 22:48
a_david12319-Jun-07 22:48 
AnswerRe: Zooming in C# using opengl Pin
a_david12325-Jun-07 20:35
a_david12325-Jun-07 20:35 
Dear all
Regards

following is my code for zooming a triangle, but it is not working , i think some problem in GLlookAt();

----------------CODE----------------------
protected override void OnSizeChanged(EventArgs e)
{


base.OnSizeChanged(e);
System.Drawing.Size s = Size;
width = (double)s.Width;
height = (double)s.Height;
GL.glViewport(0,0,s.Width,s.Height);
GL.glMatrixMode(GL.GL_PROJECTION);
GL.glLoadIdentity();
GL.gluPerspective(60.0, (float)s.Width / (float)s.Height, 1.0, 50.0);
GL.glMatrixMode(GL.GL_MODELVIEW);
GL.glLoadIdentity();



}
public override void glDraw()
{

GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); // Clear Screen And Depth Buffer
GL.glLoadIdentity(); // Reset The Current Modelview Matrix
GL.gluLookAt(0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0);
GL.glLoadIdentity();
GL.glTranslatef(-1.5f, 0.0f, -6.0f); // Move Left 1.5 Units And Into The Screen 6.0
GL.glBegin(GL.GL_TRIANGLES); // Drawing Using Triangles
GL.glVertex3f(0.0f, 1.0f, 0.0f); // Top
GL.glVertex3f(-1.0f, -1.0f, 0.0f); // Bottom Left
GL.glVertex3f(1.0f, -1.0f, 0.0f); // Bottom Right
GL.glEnd();


this.Refresh();
// GL.glFlush();
}
----------------------End----------------------------------------------------

kindly help me while zooming the above triangle.

waiting for your help

regards
davidCry | :((

david

QuestionSocket Progamming using UDP Pin
ramdil19-Jun-07 22:31
ramdil19-Jun-07 22:31 
Questionhelp ... Pin
B.A19-Jun-07 22:17
B.A19-Jun-07 22:17 
Questionwindows service scheduler Pin
arkiboys19-Jun-07 22:04
arkiboys19-Jun-07 22:04 
AnswerRe: windows service scheduler Pin
Manas Bhardwaj19-Jun-07 22:10
professionalManas Bhardwaj19-Jun-07 22:10 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 22:31
arkiboys19-Jun-07 22:31 
GeneralRe: windows service scheduler Pin
Manas Bhardwaj19-Jun-07 22:35
professionalManas Bhardwaj19-Jun-07 22:35 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 22:37
arkiboys19-Jun-07 22:37 
GeneralRe: windows service scheduler Pin
Manas Bhardwaj19-Jun-07 22:39
professionalManas Bhardwaj19-Jun-07 22:39 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 22:58
arkiboys19-Jun-07 22:58 
GeneralRe: windows service scheduler Pin
arkiboys19-Jun-07 23:04
arkiboys19-Jun-07 23:04 
GeneralRe: windows service scheduler Pin
SimulationofSai20-Jun-07 0:18
SimulationofSai20-Jun-07 0:18 
AnswerRe: windows service scheduler Pin
Joseph Guadagno20-Jun-07 4:08
Joseph Guadagno20-Jun-07 4:08 
QuestionXAML extension question Pin
Super Lloyd19-Jun-07 21:44
Super Lloyd19-Jun-07 21:44 
QuestionData Encrypt and Decrypt? Pin
mimilaw19-Jun-07 21:35
mimilaw19-Jun-07 21:35 
AnswerRe: Data Encrypt and Decrypt? Pin
Sathesh Sakthivel19-Jun-07 21:55
Sathesh Sakthivel19-Jun-07 21:55 
QuestionHow to import ActiveX control in the form? [modified] Pin
$uresh $hanmugam19-Jun-07 21:24
$uresh $hanmugam19-Jun-07 21:24 
AnswerRe: How to import ActiveX control in the form? Pin
Mali Perica19-Jun-07 21:44
Mali Perica19-Jun-07 21:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.