Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Dec 2011
Offline Last Active Oct 23 2015 11:29 AM

Posts I've Made

In Topic: SDL 2.0 compiling for android

05 October 2013 - 06:58 PM

Uh admitivly I dont know alot about compiling but as far as I understand, I use the NDK to compile the actuall SDL source files themselfs. So without actually having the library build to begin with I dont know how I can link it in the eclipse project o.o

In Topic: virtual and class inherience

03 September 2013 - 06:51 AM


You can make a non-virtual call from within a virtual function though which is sometimes needed (not for destructors though, which automatically call the base class destructors)



class Base
    virtual void f() { cout << "Base::f" << endl; }

class Derived : public Base
    void f() // is still virtual
        cout << "Derived::f" << endl;
        Base::f();  // call base class implementation from derived class explicitly

That was hell of useful as well, thanks so much for the tip :o !

In Topic: virtual and class inherience

01 September 2013 - 03:09 PM

Thanks alot for the answer guys really cleared thigns up they were really helpful :o


Now I just have 1 follow up question, if I dont overide the virtual f() function in my child class, can I still call the original f() function ( defined in the base class ) through my child object ( the B object in my example )

In Topic: Question on conversion functions

29 August 2013 - 02:28 PM

Like all externally defined member functions, you need to qualify the conversion operator definition with the class name.


Yeah I feel emberessed because of the silly mistake




I don't recommend having different types for points and vectors though


Yeah I am aware that they can be represented as 1 class but my mindset was:

Well vectors represent direction and length but they dont know where they are at, aka they dont contain information about their position


Points on the other hand are exacly the opposite they represent position but have neither length nor direction


And yea while the fundemantle ideas behind the 2 are completly diffrent, their structure ( representation w/e) is exacly the same BUT because of the core ideas being opposite to each other, it will actually be confusing for myself to have them be the same class thats why I chose to seperate them ( and yea I am already feeling the negatives of it )


P.S: Thanks to both of you for all your help guys  ;3 <3 the examples were really helpful as well ^^

In Topic: Scaling images

10 March 2013 - 05:02 PM

http://www.sdltutorials.com/sdl-scale-surface enjoy ;p