Jump to content

  • Log In with Google      Sign In   
  • Create Account


xiajia

Member Since 13 Nov 2012
Offline Last Active Jun 06 2013 10:03 PM
-----

Posts I've Made

In Topic: how to encapsulation the "action"

23 April 2013 - 04:00 AM

Well, not just GUI, can also be some game elements.
Of course, if GUI can also.For all the elements interact with 
the user in the game are far-fetched called UI ? ^.^
Then taking GUI as an example to illustrate the problem.
For example a calculator (this is just an example), there are a lot of button.
If the calculator can "switch" between the common and scientific type,
and can "minimize", "maximize"......and so on.
What I mean by "Action" is used to describe the process of these changes.
Of course you can through some simple variables to describe the action, 
but when these movements became a lot,
Variable to describe becomes very messy.

In Topic: about color mix

08 April 2013 - 07:11 AM

Thanks for Paradigm Shifter and Crusable, i get a lot of tips.I have found a good method based on CMYK. Although there are still some problems, but has almost.


In Topic: about "delete" and "delete []"

24 January 2013 - 01:28 AM

use smart pointer or use reference counting can solve this problem.


In Topic: about "delete" and "delete []"

23 January 2013 - 10:57 PM

I have yet to learn the knowledge of design patterns, I learned the factory pattern to do some more in-depth discussion.


In Topic: about "delete" and "delete []"

23 January 2013 - 09:32 AM

Why do you feel the need to call `new' at all? I rarely do it. Your members should be objects, not pointer to objects, unless you have a good reason ("I used to be a Java programmer and feel the need to write `new' all over the place" is not a good reason).

do you mean call ‘new’ at the constructor?This is just one case.Not always the case.


PARTNERS