Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Rotate Text OpenGL - OT Pin
Natural_Demon27-Apr-10 6:44
Natural_Demon27-Apr-10 6:44 
GeneralRe: Rotate Text OpenGL - OT Pin
DaveyM6927-Apr-10 8:59
professionalDaveyM6927-Apr-10 8:59 
QuestionConcurrent access to private data [modified] Pin
Mystery12326-Apr-10 23:08
professionalMystery12326-Apr-10 23:08 
AnswerRe: Concurrent access to private data Pin
Simon P Stevens27-Apr-10 0:10
Simon P Stevens27-Apr-10 0:10 
GeneralRe: Concurrent access to private data Pin
Mystery12327-Apr-10 6:32
professionalMystery12327-Apr-10 6:32 
QuestionString operation Pin
SRKSHOME26-Apr-10 22:47
SRKSHOME26-Apr-10 22:47 
AnswerRe: String operation Pin
Eddy Vluggen26-Apr-10 22:59
professionalEddy Vluggen26-Apr-10 22:59 
GeneralRe: String operation Pin
SRKSHOME26-Apr-10 23:06
SRKSHOME26-Apr-10 23:06 
GeneralRe: String operation Pin
Eddy Vluggen26-Apr-10 23:16
professionalEddy Vluggen26-Apr-10 23:16 
GeneralRe: String operation Pin
hossein narimani rad27-Apr-10 6:45
hossein narimani rad27-Apr-10 6:45 
AnswerRe: String operation Pin
Rajesh Anuhya26-Apr-10 23:07
professionalRajesh Anuhya26-Apr-10 23:07 
GeneralRe: String operation Pin
SRKSHOME26-Apr-10 23:15
SRKSHOME26-Apr-10 23:15 
GeneralRe: String operation Pin
Md. Marufuzzaman26-Apr-10 23:50
professionalMd. Marufuzzaman26-Apr-10 23:50 

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.