Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - kralo9

Pages: [1]
1
GlResource::GlResource()
{
    ...
        // Increment the resources counter
        count++;
    ...
}
 

As far as I can tell, every created instance of GlResource increases the count. I am just wondering, why there is no copy constructor defined that would increase it, too?

The default copy constructor just copies all attributes (which is none).

Therefore, if I am not fully mistaking, it is possible to cause a call to ensureContext() after globalCleanup(), because the count is smaller than the actual number of GlResource instances.

Please tell me, if I am missing something.


EDIT: I just tested, whether a copying of a derived class really calls the parent's copy constructor. And it does. I also tested it without explicit declaration of a copy constructor and the default one is called. Thus, my thoughts are correct. But maybe SFML handles it another way.

2
General / Using SFML in own dll
« on: June 12, 2013, 10:40:51 am »
I would like to know if and how i can include the sfml library in my own dll so wehn i am using my dll i need not to include the sfml library but only my own.

3
SFML projects / TankTank Mutliplayer Project
« on: February 17, 2013, 12:25:04 pm »
Here is my action-mutliplayer-awesome project "TankTank". Of course only in beginning phase. Would like to hear what you think about it. Maybe some ideas for new features :)

Using sfml and sfgui.

Already implemented:
-Shop (Ammo, Upgrades etc.)
-Bots (AI)


Here a link to Youtube video:


Looking forward

Pages: [1]