Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Blender is a big project.
I have found a source unwrap in 3dkingdom.
I'm analyzing it.
My college started teaching C #.
I am moved to Csgl.

You can see my questions on CodeProject about OpenGL C + +
I follow the instructions of http://www.developerfusion.com/article/3930/opengl-and-c-part-1/

Now I have a few problems:
1. if I use Csgl, I need to copy. dll into app folder when running on another pc?
I think csgl is Refrences.

2. from the guidance of developerfusion, I added code to glDraw in OurView.cs
Cube obj = new Cube();
             obj.CubeColorBlue = 1.0f;
             obj.CubeColorGreen = 0.5f;
             obj.CubeColorRed = 0.0f;
             obj.glDrawCube();
             obj.Rotate = true;
             obj.fRotate = 1.0f;
             GL.glFlush();
but the result is cude not rotate.
I was wrong? in class Cube bRotateCheck = true;-> fRotate + = 2.5f;->glRotatef (fRotate,...)

3. how the width, height of view = 500.
I tried view.height = 500; view.width = 500.
but it still fill.
I do not want to fill because I need to use the control

Thanks for the help
Posted
Updated 9-Jul-11 23:26pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900