Click here to Skip to main content
15,907,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading & Modifying XML Data in C# Pin
GrgBalden28-Apr-10 4:43
GrgBalden28-Apr-10 4:43 
GeneralRe: Reading & Modifying XML Data in C# Pin
Dan Mos28-Apr-10 8:02
Dan Mos28-Apr-10 8:02 
GeneralRe: Reading & Modifying XML Data in C# Pin
GrgBalden28-Apr-10 10:44
GrgBalden28-Apr-10 10:44 
QuestionCheckbox on the ColumnHeader [modified] Pin
Natural_Demon27-Apr-10 4:55
Natural_Demon27-Apr-10 4:55 
AnswerRe: Checkbox on the ColumnHeader [modified] Pin
Natural_Demon27-Apr-10 5:39
Natural_Demon27-Apr-10 5:39 
AnswerRe: Checkbox on the ColumnHeader Pin
Natural_Demon27-Apr-10 9:12
Natural_Demon27-Apr-10 9:12 
QuestionHow Secure are MDF DB Files? Pin
Caniac21727-Apr-10 2:21
Caniac21727-Apr-10 2:21 
AnswerRe: How Secure are MDF DB Files? Pin
Michel Godfroid27-Apr-10 3:35
Michel Godfroid27-Apr-10 3:35 
GeneralRe: How Secure are MDF DB Files? Pin
Caniac21727-Apr-10 4:23
Caniac21727-Apr-10 4:23 
QuestionMessage Removed Pin
27-Apr-10 2:17
Emmet_Brown27-Apr-10 2:17 
AnswerRe: form design / update clash Pin
Rajesh Anuhya27-Apr-10 2:21
professionalRajesh Anuhya27-Apr-10 2:21 
GeneralRe: form design / update clash Pin
Emmet_Brown27-Apr-10 3:51
Emmet_Brown27-Apr-10 3:51 
GeneralRe: form design / update clash Pin
AspDotNetDev27-Apr-10 18:14
protectorAspDotNetDev27-Apr-10 18:14 
JokeRe: form design / update clash Pin
Calla27-Apr-10 20:01
Calla27-Apr-10 20:01 
QuestionCopyFile Pin
toto_201027-Apr-10 1:48
toto_201027-Apr-10 1:48 
AnswerRe: CopyFile Pin
Rajesh Anuhya27-Apr-10 1:51
professionalRajesh Anuhya27-Apr-10 1:51 
AnswerRe: CopyFile Pin
Rajesh Anuhya27-Apr-10 1:59
professionalRajesh Anuhya27-Apr-10 1:59 
AnswerRe: CopyFile Pin
harold aptroot27-Apr-10 5:02
harold aptroot27-Apr-10 5:02 
GeneralRe: CopyFile Pin
toto_201027-Apr-10 7:11
toto_201027-Apr-10 7:11 
GeneralRe: CopyFile Pin
harold aptroot27-Apr-10 7:20
harold aptroot27-Apr-10 7:20 
QuestionRotate Text OpenGL Pin
Paul Harsent27-Apr-10 0:29
Paul Harsent27-Apr-10 0:29 
Hi,

I have been building a project in OpenGL, and the code to display text I have been using is
Glut.glutBitmapCharacter()
which cant be rotated.

There are loads of tutorials out there for C and C++, but not for C#.

Do anyone know how to rotate text in OpenGl, or a good step tutorial.

This is the code class I used to render my text

    class String
    {
        public String()
        {

        }

        public void RenderString(double p_x, double p_y, string str, float rotateAngle)
        {
            float x = (float)p_x;
            float y = (float)p_y;
            Gl.glRasterPos2f(x, y);
            
            int len = str.Length;

            for (int i = 0; i < len; i++)
            {
                Gl.glClearColor(0, 0, 0, 0);
                Gl.glColor3f(0, 0, 0);
              
                Glut.glutBitmapCharacter(Glut.GLUT_BITMAP_HELVETICA_18, str[i]);               
               
            }
        }

    }
}

AnswerRe: Rotate Text OpenGL [modified] Pin
Natural_Demon27-Apr-10 4:29
Natural_Demon27-Apr-10 4:29 
GeneralRe: Rotate Text OpenGL Pin
Paul Harsent27-Apr-10 5:30
Paul Harsent27-Apr-10 5:30 
GeneralRe: Rotate Text OpenGL Pin
Natural_Demon27-Apr-10 6:02
Natural_Demon27-Apr-10 6:02 
GeneralRe: Rotate Text OpenGL - OT Pin
DaveyM6927-Apr-10 6:16
professionalDaveyM6927-Apr-10 6:16 

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.