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.


Topics - CL90

Pages: [1]
1
Graphics / Renderwindow with static size
« on: February 28, 2012, 07:19:05 am »
Hi!

how can i set up a RenderWindow wich isn't resizeable. or wich keeps zue current display size, but shows more area?

when i resize the window with the mouse, the text gets blured... but i want it allways to be cristal clear.

2
General / SFML only for games?
« on: February 10, 2012, 04:03:26 pm »
Hi there!

i'm about to build an aplication. its first job will be, to show variables wich comes from our hexapod. later it should be the control pannel.
and also we plan to show a 3D Model of the Hexapod with the current movement.

I know i could do the Visual aplication with SFML. would be like an Game GUI.
but does it make sense? or should i use something like API for it?

3
Graphics / Smooth a shape?
« on: February 08, 2012, 06:04:27 pm »
Hi there!

is there a way to smooth a circle?
if smooth is the wrong discription. i mean Anti Aliasing.

shapes like this:
Code: [Select]
App.Draw(10,10, 55, sf::Color(0, 0, 0, 0), 2, sf::Color(251, 169, 89, 150)));
looks a bit edgy =(

i'm about to create some Png wich looks nicer.
btw, what costs more performance? drawing a circle, or including a image?
Depens on size?

4
Graphics / sf::Sprite -> function
« on: February 08, 2012, 04:17:12 pm »
hi there!

is it possible to give a pointer to a sf::Sprite into a function?

something like that (verry simple overview):
Code: [Select]
int main(){
  sf:Sprite ship(Image);
  function(ship);
  App.Draw(ship);

  return 0;
}



function(??? *ship){
   .... // calculate something...
   ship.SetRotation(mov.angactual);
}



what typ of pointer is a sf:Sprite? is it a Multipointer?

5
Graphics / Get Sprite variable contend
« on: February 06, 2012, 12:36:35 pm »
Hi!

how can i get variables of sprites?

i can set     "sprite.SetPosition(100.f, 100.f);"
but how to get x and y coords?
or angle?

6
Graphics / App.Clear(); SFML Crash
« on: February 06, 2012, 09:43:01 am »
Hi somehow SFML crashes when i use App.Clear();...

Code: [Select]
#include <SFML/Graphics.hpp>
#include <windows.h>


int main(){
sf::RenderWindow App(sf::VideoMode::GetDesktopMode(), "Test Program", sf::Style::Resize|sf::Style::Close);
App.SetSize(800, 600) ;

while(App.IsOpened()){

sf::Event Event;
while (App.GetEvent(Event)){
if (Event.Type == sf::Event::Closed)
App.Close();
}
//App.Clear(sf::Color(200, 0, 0, 0));
//App.Clear(sf::Color(200, 0, 0));
//App.Clear();
App.Display();
Sleep(100);
}
    return 0;
}


Here u can see that i've tryed some different App.Clears..

I'm running MSVC++ 2010 Ult.
- and Linked 3 Libs.
    - sfml-graphics.dll
    - sfml-system.dll
    - sfml-window.dll
- no errors while building
- App. Clear(), no crash.

Pages: [1]