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 - DeroldClifford

Pages: [1]
1
Window / Stopping View Scrolling
« on: September 07, 2011, 04:50:20 am »
:oops:
I'm to new at this to give you actual code, however I would break it down as so:

Code: [Select]
psodo
ViewPort (x, y, width, height)
bool leftA = false;               //left side active?
bool rightA = true;              //right side active?

Change(ViewPort);

if ViewPort.x <= 0
{
     ViewPort.x = 0;
     leftA = false;
}
else
{
     leftA = true;
}

if ViewPort.x >= picture.width-ViewPort.width
{
     ViewPort.x = picture.width-ViewPort.width;
     rightA = false;
}
else
{
     rightA = true;
}

void Change(ViewPort)
{
     (I said move it left)
     {
          if rightA = true move it
          else do nothing.
     }

     (I said move it right)
     {
          if leftA = true move it
          else do nothing.
     }
}

/* of course above code won't work in any current language,
but should give an idea in what ways you might like to go*/

2
Window / Making a Sandbox for learning OpenGL
« on: September 07, 2011, 03:35:03 am »
Howdy, I'm playing around with the same stuff.

First of all you do not need to include the openGL headers, the window header does it for you and it does it in a way that is cross platform.

like:
Code: [Select]
#include <SFML/window.hpp>

however in my environment I need to do it like so:
Code: [Select]
#include "SFML/window.hpp"
:)
small thing but they are interpreted differently for me.

ok,,,, as for the rest it look OK to me.  But on a side note I have been using
Code: [Select]
#include "SFML/Grapics.hpp"
instead, this allows me to use the text functions for displaying stuff that helps me debug the program later.

Pages: [1]
anything