Archive for the ‘Peek into Development’ Category

Creating Dialogs – Part I

Posted on July 8th, 2010 by Andreas  |  Comments Off

This part shows some sample code how a dialog is loaded
and added to the dialog hierarchy.
We usually try to keep the hierarchy flat,
but sometimes its cleaner to use sub dialogs,
so the possibility is there.

definition = g_resourceManager.getResource< UIDialogDefinition >( "yesno.odlg" );
YesNoDialog pYesNoDialog = new YesNoDialog;
pYesNoDialog->createFromDefinition( *pUIElementCreator, definition );
pRootDialog->addChild( pYesNoDialog );
g_resourceManager.releaseResource< UIDialogDefinition >( definition );

(Note: I omitted [...]

Avoiding virtual method calls

Posted on February 13th, 2010 by Andreas  |  2 Comments »

I was about to write a post about how to avoid virtual method calls in C++.
While looking for the correct wording for one of the lines I stumbled across this:
Getting rid of virtual method calls
Since my explanation wasn’t much better,
I’ll just leave you with the link to Floh’s article
and a snippet of our rendering engine.

[renderer.hpp]
 
#if [...]

Test – C++ Highlighting

Posted on September 28th, 2009 by Andreas  |  Comments Off

Just wanted to test if syntax highlighting of code works correctly in our blog,
but instead I posted actual code from our framework.
This is all that’s needed to get an OpenGL Viewport/Window/Screen on any supported platform.

 
int main( int argc, char* argv[] )
{
Platform::initialize( argc, argv );
Platform::run( &g_application, 320, 480 [...]

Mac OSX 10.6 – Snow Leopard – Carbon

Posted on September 24th, 2009 by Andreas  |  Comments Off

I just upgraded one of our development MacBooks to Snow Leopard.
Good news, everything is up and running … faster.
Bad news our framework for OSX is based on Carbon and lots of the functions and methods we use are deprecated or removed.
Looks like I finally have no choice and have to port the framework to Cocoa.
Back [...]

Eye Candy – More UI System

Posted on August 16th, 2009 by Andreas  |  Comments Off

The filechooser dialog is actually working:
OSX:

The filesystem is nicely abstracted, so we can also browse pak files or networked stuff.
Linux:
No box here right now, but it should still be working.
Windows:
98% there. Steffen only has to port 3 or 4 files.
iPhone:
Should be alright, but I’m still on the replacement notebook
Next step:
Make the slider work [...]