Hi, I'm the founder of Leadwerks Software.

Image RSS Feed Latest Screens
GDC 2013 Prepping
Blog RSS Feed Report abuse Latest Blog: Building Leadwerks for Linux and SteamOS

0 comments by JoshKlint on Oct 5th, 2013

Compiling Leadwerks for Linux using the Code::Blocks IDE wasn't very hard. I particularly like the way Code::Blocks handles files in projects. Instead of creating your own "fake" file system in the project explorer, you just add the folder or files you want, and they are organized in a hierarchy that matches the file system.

I found the X windowing system to be extremely easy to work with. I've implemented windowed OpenGL contexts on Windows, OSX, iOS, and Android, and Linux was by far the most straightforward and simple.

One problem I ran into was that some Leadwerks classes conflict with Linux classes. Our Windows, Font, and Time classes match other classes in the Linux headers. I got around this by prefixing the classes with the "Leadwerks::" namespace, but some better solution should be found.

Upon my first attempt to run Leadwerks, all I got was a blue screen. I fell back from OpenGL 4 to OpenGL 2 and started playing with the OpenGL matrix commands (a relic of the fixed-function pipeline I never even use anymore). When I called glOrtho() with the context width and height, I produced an OpenGL INVALID_VALUE error. From there it wasn't hard to figure out the cause...

int Window::GetClientWidth) { return 0;/*don't forget to add this later*/ }
Once I implemented the missing function, everything worked fine. So I am pleased to unveil the very first screenshot in the history of the universe of Leadwerks running in Linux using OpenGL 4:

Attached Image
Behold, the green square of triumph!

Though this is a simple example, we have a full 3D engine with deferred lighting and a really unique terrain system, so I don't think it will be long now before we can start showing off some great Linux graphics. Linux has the fastest possible performance for 3D rendering, so it will be interesting to see what we can do with it.

Media RSS Feed Latest Video
Groups
Leadwerks Developers (BETA)

Leadwerks Developers (BETA)

Web & Community group with 5 members, open to all members

This new community group is for developers making games with the Leadwerks engine. Hang tight as we create the group.

Leadwerks Software

Leadwerks Software

Developer & Publisher Invitation only

Leadwerks Software was founded in 2006 to build powerful game development tools that are easy to use. The company launched Leadwerks 3, their first multiplatform...

Linux Gamers

Linux Gamers

Fans & Clans group with 2,905 members, open to all members

The group for gamers dedicated to Linux. No matter if game developers or game players all are welcome interested in Linux as a gaming platform.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Level
Avatar
Avatar
Offline Since
Dec 25, 2014
Country
United States United States
Gender
Male
Member Watch
Track this member
Statistics
Activity Points
350
Rank
7,093 of 483,808
Watchers
4 members
Time Online
1 second
Comments
28
Site Visits
667
Profile Visitors
5,268 (1 today)
Contact
Homepage
Leadwerks.com
Private Message
Send Now
Email
Members Only
Twitter

Latest tweets from @leadwerks

New screenshot by Markus: office T.co #gamedev #Leadwerks T.co

Dec 24 2014, 1:19am

New screenshot by DoctorChocolate: screenshot3 T.co #gamedev #Leadwerks T.co

Dec 23 2014, 12:31am

New screenshot by fraisgamer: My Game T.co #gamedev #Leadwerks T.co

Dec 23 2014, 12:31am

So much done, so much more to go! T.co

Dec 21 2014, 2:45pm

New screenshot by nick.ace: First Screenshot T.co #gamedev #Leadwerks T.co

Dec 21 2014, 1:09am

New video by nick.ace: Crime Closer Alpha 1 T.co #gamedev #Leadwerks

Dec 20 2014, 9:36pm

Check out "Crime Closer" by nick.ace: T.co T.co

Dec 20 2014, 10:54am

New screenshot by fredou54: EGOUTS T.co #gamedev #Leadwerks T.co

Dec 19 2014, 4:16pm

Save 40% on Leadwerks Game Engine during the Steam Holiday Sale: T.co #gamedev #indiedev #steamT.co

Dec 18 2014, 2:25pm

New screenshot by Gonan: LastOneStandingWins T.co #gamedev #Leadwerks T.co

Dec 17 2014, 7:50pm

No one is friends with JoshKlint awww. You should invite your mates to the site, or make new ones.