Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


wqking

Member Since 29 Jul 2010
Offline Last Active Mar 31 2014 04:51 AM

Topics I've Started

Tween and timeline -- create ease animation in C++ (cpgf library version 1.5.5)

04 May 2013 - 09:41 PM

I'm glad to announce cpgf library version 1.5.5 is release.

 

cpgf library -- free C++ open source library for reflection, serialization, Lua, Google V8 JavaScript and Python script binding, callbacks

 

Changes log:

  • Added tweening and timeline library.
  • Added generic property accessors, getter and setter.
  • Refactored meta property to reuse generic property accessors.
  • Fixed a bug that using function (not pointer) as property accessor may cause wrong address crash in VC.
  • Fixed a bug that using policy GMetaRuleExplicitThis on property setter may cause wrong argument being selected.
  • Fixed a compile error in gstdint.h in VC 2012.

Sample code to create tween animation

// Define a sprite somewhere.
FooSprite mySprite;
 
// Setup the tween
GTween & tween = GTweenList::getInstance()->createTween()
  .duration(2.0f)
  .ease(ElasticEase::easeIn())
 
  // We can use getter/setter functions
  .target(createAccessor(&mySprite, &FooSprite::getX, &FooSprite::setX), 100)
 
  // We can also use property address directly, as long as the property is public.
  .target(createAccessor(&mySprite, &FooSprite::y, &FooSprite::y), 200)
;
 
// The main tick function
void gameLoop(float frameDuration)
{
  GTweenList::getInstance()->tick(frameDuration);
}

The library web site:
http://www.cpgf.org/

 

Tween library documentation

http://www.cpgf.org/document/cpgf-tween-library.html

 


cpgf library version 1.5.3, supports Irrlicht 1.8 and Python operator overloading

09 December 2012 - 06:11 AM

cpgf library -- free C++ open source library for reflection, serialization, Lua, Google V8 JavaScript and Python script binding, callbacks

Changes log:
  • Python script binding now supports C++ operator overloading.
  • Metagen tool can put template instantiations in separated source file.
  • Now meta data for Irrlicht 3D engine supports Irrlicht 1.8.

The library web site:
http://www.cpgf.org/

cpgf library version 1.5.2, now we can use Irrlicht 3D engine in Lua, JavaScript, and P...

23 November 2012 - 11:55 PM

cpgf library -- free C++ open source library for reflection, serialization, Lua, Google V8 JavaScript and Python script binding, callbacks

The new version 1.5.2 added meta data for Irrlicht 3D engine. Now we can use Irrlicht in Lua, JavaScript and Python.
Beside that, a lot of improvements and bug fixes had be done in version 1.5.2.

The library web site:
http://www.cpgf.org/

The document and screenshots for Irrlicht binding
http://www.cpgf.org/document/metadata-irrlicht.html

aio.org madly "banlist", what's other free newsgroup servers?

23 October 2012 - 06:37 AM

Today I tried to post a topic to comp.lang.c++ via nntp.aioe.org, but the server always refuses my post due to "banlist".
I believe my IP address is not bad, even though I'm from China...
I googled and I think it's something wrong on aioe side.

So, do you know any newsgroup servers that are real FREE (not free trial) with post permission?
Ten years ago it's easy to find free usenet servers, but nowadays seems it's quite difficult to find one.

And recommendations?
I only need to post/read comp.lang.c++ and comp.lang.c++.moderated

Thanks

Should we develop using Surface Pro?

16 October 2012 - 09:24 PM

I have a New iPad, which is given by the company. I only use it to browse web page, play some games, etc. I don't use it for serious work.
I have a very old desktop PC, which I use to program/develop on.
I didn't and don't want to have a laptop.

OK, that's enough for the background. Now back to Microsoft Surface.
I have very much interesting in Surface Pro (the x86 version, I would ignore RT) because it can be either a tablet and a real laptop, and it's made by Microsoft.

My question is, should we do heavily development on Surface Pro? Such as compile a big C++ library using GCC which cost half an hour and hit the disk for millions of times?
The disk hitting on the tablet makes me hesitate. I guess (only a guess, I don't know hardware) the disk has shorter life than a normal hard disk in a PC. So maybe that kind of development will make the tablet disk die very quickly? This is what my major concern, hope someone can give clarify on it.

EDIT: Seems my original post is focused on the disk. Beside that, it will be great if you tell whether you are planing to get a Surface Pro for development.
For me, I have strong willing to get a Surface Pro as long as the price is acceptable to me.

PARTNERS