Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Orangeatang

Member Since 05 Oct 2004
Offline Last Active May 17 2013 02:23 PM
-----

Posts I've Made

In Topic: Directx tutorials?

17 May 2013 - 09:24 AM

If you really want to learn DirectX11 then the Rastertek tutorials are excellent... you will have to write quite a bit of code (there are lots of different things to set up when opening up a window from scratch), but it's reasonably well documented.

 

http://www.directxtutorial.com/LessonList.aspx?listid=11 has a lot more documentation if that helps, but you'll want to head back to Rastertek for more interesting effects.


In Topic: How comes this code leaks memory?

15 May 2013 - 07:58 AM

nothing I new'd inside of DrawFont

But if there's something you've allocated in the DrawCall class, then it's not going to be de-allocated when you delete your DrawFont instance.

 

For a parent class's destructor to be called when you delete a derived class, said desturctor has to be virtual.


In Topic: Create no window,but still creates it

30 April 2013 - 07:30 AM

SiCrane meant that if you're creating a process that isn't a console application, the CREATE_NO_WINDOW flag is ignored... i.e. only console applications will spawn without a window.


In Topic: Is there an overhead for performing chains of method calls?

29 April 2013 - 02:14 PM

The most you should do is a.b().  

I've always liked a quote from Brian Kernighan regarding debugging:

 

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it

 

What frob said is spot on :)


In Topic: Coloured Light Maps

26 April 2013 - 02:19 PM

You are multiplying red by green, so it's 0.

Ah hah haaaa, I feel dumb :) Thanks for that!


PARTNERS