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 - 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, 05:14:50 pm »
hm ok. 3D is then a problem.

and mixing wont fix hm?
or can i use a GUI, and use SFML in it? or/and an other lib for the 3D part.

3
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?

4
Graphics / Smooth a shape?
« on: February 08, 2012, 08:51:19 pm »
ah thanks!

5
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?

6
Graphics / sf::Sprite -> function
« on: February 08, 2012, 05:32:08 pm »
thanks!

works perfectly =)

nice to have some people here around! =)

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

8
Graphics / Get Sprite variable contend
« on: February 06, 2012, 12:44:20 pm »
jup. but it doesnt shows a list of possible commands.
is there any Manual?

9
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?

10
Graphics / Sprite not centering properly - conflicts with Rotate...?
« on: February 06, 2012, 12:34:04 pm »
Hi!

may i can help you^^
i have had the problem befor about 30mins.

my image is (because i thought of center) is: 101x101 pixels.
dont know if images with a pair pixelcwidth can be centered well.

so i center it like this:
Code: [Select]
   ship.SetPosition(100.f, 100.f);
ship.SetCenter(50,50);


my image rotates clearly around the 100x 100y pixel.

11
Graphics / App.Clear(); SFML Crash
« on: February 06, 2012, 10:44:12 am »
Thanks!
i googled for a tutorial to compile the libs. and fount precompiled ones for VC++ 2010 in this tutorial:
http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition-Part-1.aspx

12
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]
anything