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

Pages: [1]
1
DotNet / Re: Text not rendering correctly
« on: April 07, 2012, 06:09:28 pm »
Just got it working myself, I hadn't used the newest csfml library which was provided. My bad.

Thanks for the fast response though!

2
DotNet / Re: Text not rendering correctly
« on: April 07, 2012, 05:56:39 pm »
Here you go

Code: [Select]
using SFML.Graphics;
using SFML.Window;

namespace TextProblem
{
public class EntryPoint
{
public static void Main()
{
Program prog = new Program();
}
}

public class Program
{
RenderWindow Graphics;
bool running;
Text text;

public Program()
{
Graphics = new RenderWindow(new VideoMode(800,600),"Text problem");
text = new Text();
text.DisplayedString = "Text";
text.Position = new Vector2f(0,0);
text.CharacterSize = 30;
Loop();
}

public void Loop()
{
running = true;

while(running)
{
Graphics.DispatchEvents();
Graphics.Clear();
Graphics.Draw(text);
Graphics.Display();
}
}
}
}

3
DotNet / Text not rendering correctly
« on: April 07, 2012, 05:27:28 pm »
Hello
I've encountered a problem when displaying text.  When ever I draw text I get these blocks that look to be able the size of the character that should be present there. These blocks are the same colour as I've set the text. Any help would be great. Oh i'm using the latest revision of SFML.Net from GitHub.

This is my code:
Code: [Select]
text = new Text();
text.DisplayedString = "This produces blocks which look to be the same size of the letter";
text.Color = Color.Red;
text.Position = new Vector2f(0,0);
Graphics.Draw(text);

Cheers

Pages: [1]
anything