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

Pages: [1]
1
Graphics / Re: Full screen problem
« on: February 18, 2013, 02:42:21 pm »
Thanks for many answers.

@zsbzsb i see no file there.

2
Graphics / Re: Full screen problem
« on: February 14, 2013, 03:49:01 pm »
@zsbzsb
Yes, i try to use graphical .net components on SFMLWindow.

I know, that code:
SFMLWindow = new RenderWindow(this.Handle);
is drawing on some window handle (i.e. form).

I can't simply draw .net components anything on SFMLWindow?

If not, then i must change screen resolution by myself, and maximize form?

@krzat - your code is ok (and thank you for your answer). But i try to do something what i don't know is possible...

3
Graphics / Re: Full screen problem
« on: February 13, 2013, 08:19:46 pm »
Ok, I have something like this:

Form2:
SFMLWindow = new RenderWindow(this.Handle);
inside Form2 I have also:
panel1
 on panel1 is: many componentsl like labels, buttons, displays components and so on...

Now I close:
SFMLWindow.Close();

And create this:
SFMLWindow = new RenderWindow(new VideoMode(1920, 1080), "Game", Styles.Default);

What about panel, labels and other? I don't know how to move it (panels, labels, other display components) into new window.

This is worst problem :(

4
Graphics / Re: Full screen problem
« on: February 13, 2013, 12:22:41 am »
I can't close that window, because i have few graphical components on this window displayed on SFMLWindow.

5
Graphics / Re: Rotation problem
« on: February 12, 2013, 01:40:39 am »
THANKS !!!!!!!!

It's working :D So simple...

6
Graphics / Full screen problem
« on: February 12, 2013, 01:19:26 am »
C# SFML 2.0
I have problem with full screen mode:

I have 2 forms.
1st form is a standarw form.

2nd form is form with partialy display gfx with this declaration:
SFMLWindow = new RenderWindow(this.Handle);

What i need to do to change this to full screen mode?
                if (SFML.Window.Keyboard.IsKeyPressed(SFML.Window.Keyboard.Key.F))
                {
                    //How to get full screen modes?
                    //How to switch from windowed size to full screen?
                }

7
Graphics / [SOLVED] Rotation problem
« on: February 12, 2013, 01:05:52 am »
I have C# project with SFML 2.0

It is possible to rotate obiect at middle point (not at left upper corner)?

I try something like this:

double whell_angle;
whell_angle++;
ship_whell.Rotation = (float)whell_angle;//ship_whell is a sprite with texture size: 27x27 px

ship_whell.Position = new Vector2f((float)(ship_position_x_p + 10 + (Math.Sin(((whell_angle+60) * Math.PI) / 180.0f)) * 14), (float)(ship_position_y_p + 70 - (Math.Cos(((whell_angle+60) * Math.PI) / 180.0f)) * 14));

Everything i tried is rerrible (also SFML.Net.chm)

Pages: [1]
anything