Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 14 Feb 2013
Offline Last Active Mar 28 2013 01:11 PM

Posts I've Made

In Topic: Drawing a 2d Text without using glut or SDL libs and dll-s

24 March 2013 - 03:39 PM

if you don't want to learn how to compile sdl, sfml, etc on linux

You probably don't understand, I know how to compile SDL,GLUT,aux etc. on linux, I always uses SDL or glut, but now I want to create an "StandAlone" application what do not use any special libraries what to need  be install, it should only use OS defaults(GL.h,GL.u,maybe glx.h).




And that link you posted is very usefull but I don't have time to understand and be able to use it.
I need some more simple solution for this, when I was "googling" I found this opengl turorial what using a glBitmap() 


It's simpliest solution but, ist's not working for me now, my 3d scene is drawing, but text isn't and before you ask, yes I create new projection under scene, I realy need help with this.

In Topic: Drawing a 2d Text without using glut or SDL libs and dll-s

24 March 2013 - 02:13 PM

SFML/SDL/etc are cross platform librarys and all have text rendering functions, you just need to know how to link the appropriate library's.


I say otherwise, I personaly don't want use SDL,GLUT,AUX etc. because I am using winapi (and x11 in linux ofcourse) and because I don't want have .dll file with .exe


it sounds more like you don't understand how librarys work under linux(or in particular gcc/g++ compiler)

I will not react on that because I  do not want to start guessing.


In Topic: Drawing a 2d Text without using glut or SDL libs and dll-s

24 March 2013 - 01:07 PM

Yes it's good idea, but I don't have that much skill in this case, I can use it only if you post some script, to understanding.

In Topic: Object behind another object

16 February 2013 - 12:16 PM

Yes I know, I wrote that I tryed glEnable (GL_DEPTH_TEST) and glDepthFunc (GL_LEQUAL) (and I uses glClearDepth(1.0f) and glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)). 
I cannot post my code, because is more complex and is always in classes, structures and unions. I can only better explain my problem and post all glEnables and some stuff from my scripts.
Ok, where I can  begin..... I have scene/game, who is about Solar System, I am using primitive object sphere and i have 3 object Universe(rotating background), Sun and one planet.
Camera is look on sun and planet is behind sun, but what i see with camera is this(without Depht test): 




And when I enable:






and in loop i have: glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)

I see this: