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.


Messages - starstriker1

Pages: [1]
1
Graphics / Setting a view causes flickering
« on: March 22, 2010, 02:33:40 pm »
Hmm. No, I'm not. I threw almost identical code into a quick test app and was unable to reproduce it. I suspect that I may be doing something wierd. My apologies!

[edit] Yep, just found the problem. Was doing something wierd when calculating the view object's position.

2
Graphics / Setting a view causes flickering
« on: March 22, 2010, 05:39:43 am »
When I added the code to manage the view, the screen in my window began flickering (IE, objects began to flicker black, the background colour). VSync has already been set on the window.

Code: [Select]
void GameManager::render() const
{
// Clear the window
window->Clear();

//Manage view
View view = window->GetDefaultView();
if(viewObject)
{
view.SetCenter(viewObject->getPosition(currentFrameTime));
view.Zoom(viewZoom);
}

window->SetView(view);

//Render all objects
for(list<GameObject *>::const_iterator iter = gameObjects.begin(); iter != gameObjects.end(); iter++)
{
GameObject *obj = (*iter);
obj->render(GetTime(), window);
}

// Display things on screen
window->Display();
}


Anyone know what's causing the flickering?

3
General discussions / Working with a multiplatform team
« on: February 02, 2010, 04:01:21 am »
I'm switching from HGE to SFML for my next project. I'm missing some of my favourite features, but cross-platform compatibility was my primary concern.

My development team consists of me and one other person, and we need to collaborate remotely. We've already got our repository and such set up, but I'm having a bit of trouble figuring out how to effectively share the library across the source control. Were we using the same operating system, I'd use the included libs and dlls and just have at it, but my development partner is using a Mac while I'm using Vista.

Will the same source code be usable for both of us? Are there any major "gotchas" when working on multiple platforms at once with SFML, as opposed to working on a single platform then porting later?

Thanks!

Pages: [1]