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

Pages: [1]
1
SFML game jam / Re: Who's going to stream ?
« on: January 31, 2014, 03:58:18 pm »
I've already begun, the jam starts in 2 minutes. The stream has great quality and I'll probably be playing music from Spotify.

2
General discussions / Re: Mutual following on Twitter!
« on: January 21, 2014, 03:01:33 pm »
Oh nice! My twitter is https://twitter.com/SanteriKasvi

3
DotNet / Re: VertexArray indexing problem
« on: November 23, 2013, 01:19:58 pm »
Sorry, I was just wondering why no errors or traces are thrown.

4
DotNet / VertexArray indexing problem
« on: November 23, 2013, 12:14:40 pm »
Hi

For some reason, when I index a location on a VertexArray higher than the array's capacity, the game force-closes without any trace or error.

Minimal code:
Code: [Select]
        static void Main(string[] args)
        {
            RenderWindow window = new RenderWindow(new VideoMode(800, 600), "Vertex Test", Styles.Close, new ContextSettings() { AntialiasingLevel = 2 });
            window.Closed += (s, e) => { window.Close(); };

            VertexArray vertices = new VertexArray(PrimitiveType.Quads, 4);

            vertices[4] = new Vertex(new Vector2f(10, 10), Color.Red);

            while (window.IsOpen())
            {
                window.DispatchEvents();

                window.Draw(vertices);

                window.Display();
            }
        }

I'm using SFML.NET 2.1 on Windows 7, Visual Studio 2010.

5
Graphics / Re: Is clear() that necessary?
« on: November 01, 2013, 12:10:21 pm »
Graphics cards/APIs are designed for the clear + draw + display loop, so there is no point leaving clearing out. You are getting close to nothing more performance, but things may get messy without clearing.

Pages: [1]
anything