Author Topic: Can I run Glest by using DirectX for graphics instead of OpenGL  (Read 1713 times)

Solaris

  • Guest
When I try to open Glest, it says I have OpenGL 1.2 and that I need Open GL 1.3 or later. So, is there any way I can run Glest without using OpenGL? Like by using DirectX instead?

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
I really don't think so.  Why can't you just update OpenGL?  It's free.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
I changed the factory graphics setting in the ini to DirectX9 and it seemed to work. Of course, I have openGL on my computer too, so its always possible that it merely used open GL regardless, but do try and tell me if it worked!
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
I changed the factory graphics setting in the ini to DirectX9 and it seemed to work. Of course, I have openGL on my computer too, so its always possible that it merely used open GL regardless, but do try and tell me if it worked!
Quote
GraphicsFactory *FactoryRepository::getGraphicsFactory(const string &name){
   if(name == "OpenGL"){
      return &graphicsFactoryGl;
   }
   else if(name == "OpenGL2"){
      return &graphicsFactoryGl2;
   }

   throw runtime_error("Unknown graphics factory: " + name);
}


It should have crashed! Are you sure you saved the ini ? :)
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Indeed. DirectX is only available for sound on Windows as far as I'm aware.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/