Jump to content

  • Log In with Google      Sign In   
  • Create Account

mark ds

Member Since 07 Jan 2010
Offline Last Active Today, 09:12 PM

Posts I've Made

In Topic: Easiest coding language?

Yesterday, 07:31 PM

To Serapth

 

From Lua's Wiki: Lua is crap!

 

"Lua is a tiny and simple language, partly because it does not try to do what C is already good for, such as sheer performance, low-level operations, or interface with third-party software. Lua relies on C for those tasks. What Lua does offer is what C is not good for: a good distance from the hardware, dynamic structures, no redundancies, ease of testing and debugging. For that, Lua has a safe environment, automatic memory management, and great facility to handle strings and other kinds of data with dynamic size."

 

In  this modern age, battery life is just as important as absolute performance.


In Topic: trying to avoid using if statements - is this good idea ?

16 December 2014 - 10:22 AM

 

Why not just use

 

tVBO->Draw(GL_LINE_LOOP, 0, 3);

tVBO->Draw(GL_TRIANGLES, 0, 3);

 

or

 

GLenum mode = GL_LINE_LOOP;

tVBO->Draw(mode , 0, 3);

tVBO2->Draw(mode , 0, 3);

 

GLenum mode = GL_TRIANGLES;

tVBO->Draw(mode , 0, 3);

tVBO2->Draw(mode , 0, 3);

 

It's appears that you're overly complicating things.

 

 

 

 

just make a varrible with the mode and change it ?

 

 

Exactly - it seems like a far easier way of handling the current draw mode (I say that without actually knowing what you're trying to achieve).

 

But either way, a few if statements are trivial, performance wise.


In Topic: trying to avoid using if statements - is this good idea ?

16 December 2014 - 09:56 AM

Why not just use

 

tVBO->Draw(GL_LINE_LOOP, 0, 3);

tVBO->Draw(GL_TRIANGLES, 0, 3);

 

or

 

GLenum mode = GL_LINE_LOOP;

tVBO->Draw(mode , 0, 3);

tVBO2->Draw(mode , 0, 3);

 

GLenum mode = GL_TRIANGLES;

tVBO->Draw(mode , 0, 3);

tVBO2->Draw(mode , 0, 3);

 

It's appears that you're overly complicating things.

 

 

 


In Topic: Easiest coding language?

15 December 2014 - 10:42 AM

If you're starting from scratch, I'd have to seriously recommend downloading Visual Studio 2013 Community Edition, and learning C#. There are loads of online resources, but better still buy a good C# book.

 

After several months of hard graft getting your head around programming, look into using an existing game engine, such as Unity or Unreal (both of which can be used with C#).


In Topic: Rendering an atmosphere

14 December 2014 - 07:03 AM

Along with the above, try looking at Celestia. It's open source so you can look at how they do it.


PARTNERS