Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem with windows service Pin
Prabhat00326-Feb-08 18:51
Prabhat00326-Feb-08 18:51 
GeneralIssue regarding Serialization [modified] Pin
free_soul42426-Feb-08 0:38
free_soul42426-Feb-08 0:38 
GeneralRe: Issue regarding Serialization Pin
Le centriste26-Feb-08 4:58
Le centriste26-Feb-08 4:58 
QuestionWriting an Image in Excel Cell Comment using C# Pin
Neeraj Kr26-Feb-08 0:28
Neeraj Kr26-Feb-08 0:28 
QuestionExecuting an EXE Pin
M. J. Jaya Chitra26-Feb-08 0:26
M. J. Jaya Chitra26-Feb-08 0:26 
GeneralRe: Executing an EXE Pin
Luc Pattyn26-Feb-08 0:29
sitebuilderLuc Pattyn26-Feb-08 0:29 
QuestionDraw Text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 0:18
Yasir Nawazish Ali26-Feb-08 0:18 
GeneralRe: Draw Text in C# using OpenGL Pin
Christoph Menge26-Feb-08 1:05
Christoph Menge26-Feb-08 1:05 
Hey,

be careful not to mix up things here.

First, OpenGL is a native C Library, so 'talking to' OpenGL, at some point, requires you to communicate with it - good news is, you don't have to that yourself (but you can if you want to).

Check out the following libraries which may help:
o Tao Framework[^]
o EaseWrapperSDK[^]

NOTE: Tao is for C#, EaseWrapper is for C++. If you haven't worked with managed C++ / Interop, look at Tao first. Tao has more to offer than just wrapping OpenGL, by the way (also wraps SDL, OpenAL, etc.)

Second comes text rendering. There are a number of ways to it:
o Manually. This involves a texture which contains letters and numbers. Then, you render little rectangles with orthographic projection on the screen. For a GUI, you want to do this after the scene is rendered. This is not as hard as it may sound.
o Using a library such as glFont. As far as I know, glFont is a program or a library. Its not an OpenGL-Command. However, I don't know any C# gl font-render libraries, so again you might have to mess with a managed C++ wrapper.
o Using a high-level library such as CeGUI which has a lot more to offer than text rendering. It is included in the EaseWrapperSDK, but it's also C++.

There might be a GUI library in Tao, I'm not sure.

I suggest you go for Tao and have a look at thoseNeHe Lessons[^] which concern font rendering. He presents a number of options. NeHe's tutorials are available as C#, but you will have to (in other words, you should) convert them to Tao if you use it.

Hope that helps,


Chris

"Obstacles are those frightening things you see when you take your Eyes off your aim"
- Henry Ford

Articles 
Blog

GeneralRe: Draw Text in C# using OpenGL Pin
Yasir Nawazish Ali26-Feb-08 17:15
Yasir Nawazish Ali26-Feb-08 17:15 
GeneralRe: Draw Text in C# using OpenGL Pin
Christoph Menge3-Mar-08 1:04
Christoph Menge3-Mar-08 1:04 
GeneralRe: Draw Text in C# using OpenGL Pin
Paul Harsent27-Apr-10 4:52
Paul Harsent27-Apr-10 4:52 
Questionhow to get the network packet size? Pin
Mahmood Abbasi26-Feb-08 0:09
Mahmood Abbasi26-Feb-08 0:09 
GeneralDirectX Sound device Pin
Eduard Keilholz25-Feb-08 22:29
Eduard Keilholz25-Feb-08 22:29 
GeneralExecuting Multiple command on MS_DOS Pin
Sanjitrajbanshi25-Feb-08 21:57
Sanjitrajbanshi25-Feb-08 21:57 
GeneralRe: Executing Multiple command on MS_DOS Pin
Rajesh R Subramanian25-Feb-08 22:21
professionalRajesh R Subramanian25-Feb-08 22:21 
Questionquery for temporary table Pin
Sonia Gupta25-Feb-08 21:16
Sonia Gupta25-Feb-08 21:16 
GeneralRe: query for temporary table Pin
Xmen Real 25-Feb-08 21:25
professional Xmen Real 25-Feb-08 21:25 
QuestionRe: query for temporary table Pin
Sonia Gupta25-Feb-08 21:37
Sonia Gupta25-Feb-08 21:37 
GeneralRe: query for temporary table Pin
N a v a n e e t h25-Feb-08 21:45
N a v a n e e t h25-Feb-08 21:45 
QuestionRe: query for temporary table Pin
Sonia Gupta25-Feb-08 21:58
Sonia Gupta25-Feb-08 21:58 
GeneralRe: query for temporary table Pin
N a v a n e e t h25-Feb-08 22:10
N a v a n e e t h25-Feb-08 22:10 
QuestionRe: query for temporary table Pin
Sonia Gupta25-Feb-08 22:20
Sonia Gupta25-Feb-08 22:20 
GeneralRe: query for temporary table Pin
Christian Graus25-Feb-08 23:12
protectorChristian Graus25-Feb-08 23:12 
AnswerRe: query for temporary table Pin
Xmen Real 25-Feb-08 22:06
professional Xmen Real 25-Feb-08 22:06 
GeneralCopy to ClipBoard Pin
D i x y25-Feb-08 21:11
D i x y25-Feb-08 21:11 

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.