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

Pages: [1]
1
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?
                }

2
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