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

Pages: [1]
1
Graphics / Drawing onto a surface
« on: January 18, 2014, 11:41:47 am »
I'm not sure how to go about this, thought I'd try get a little input :)

Basically, I want to draw onto a surface, of which I can set the size and position of, which can then be drawn onto the render window buffer. I'm throwing together a small window class which I can draw stuff into, and then just move them all around at once by moving the 'surface' if such a thing is implemented?

Any help appreciated :)

Thanks

2
Graphics / Rotating Texture
« on: February 26, 2013, 11:44:33 am »
Hey guys. Have a small problem, not sure if I'm handling it the correct way and I'm not a 3D expert yet =P

I'm trying to make a small Mode 7 project (And yes, I know it's not real 3D) http://en.wikipedia.org/wiki/Mode_7

It's looking good, but I need to rotate the texture (Not the sprite) so that it can be navigated in this mode, if you understand what I'm trying to say.

I haven't mucked with OpenGL in a long time, if that's even how it should be done. But yeah, confused, any ideas on how I can get what I'm trying to achieve? Any help appreciated!! :D

Thanks!

Pic: This is what I kinda have it doing currently: http://puu.sh/28DkV

3
Graphics / Stretch Sprite/Texture
« on: January 14, 2013, 07:49:45 am »
Hey, I can't find the answer to this anywhere (Well I could but not for 2.0)

How do I simply stretch a, say, 100x100 image to 1024x768.

sf::Texture/Sprites have no setSize() functions so I'm not sure, does it have something to do with views?

Thanks.  ;)

4
General / Window Focus and Input
« on: December 02, 2012, 01:53:09 am »
Hey guys. I've been reading a little on the forum about this problem, seems others have had it =)

I've been using events for things like text input, but not much else, I've stuck to the isButtonPressed() functions for mouse click, and I didn't realize that this function returns true even when the window is out of focus. I didn't really want to pull all my code apart to fix it, I was hoping that I've missed something,  maybe some mode I could set to disable input when the window is out of focus? I hope :(

Any suggestions?

Thanks guys

5
General / Text Input
« on: October 28, 2012, 01:42:39 am »
Hey guys. Having a little trouble with text input, using the TextEntered event.
I can't seem to get any characters added to the string. The only way I can is if I use Event::KeyPressed, which inserts unknown [] characters.

I'm using str += static_cast<char>(tInput.text.unicode); with SFML 2.0.

Thanks in advance =)

6
General / Compiling SFML for VS2012
« on: October 04, 2012, 12:12:06 am »
Hey guys. I'm kinda new to recompiling libraries, and I'm not sure about how to recompile SFML to work with Visual Studio 2012 Express. CMake just gives me errors, and from what I have gathered off the net, it doesn't support the express edition. I get:

CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 11".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

I wanted to know, is there a fix, and if not, is there any alternative to CMake? Or if a pre-compiled version for 2012 is available to download somewhere.

It seems the crash problem I was running into (My previous thread) was caused by using the 2010 version on VS2012.

Thanks in advance ;D

7
Graphics / Crashing when rectangle setSize
« on: October 03, 2012, 08:57:47 am »
Hey guys. I'm having some trouble using setSize. Basically, I have a timeline class, and I created one rectangle for a 'background', and one to use as a line. (There's probably better ways to create a line, but this still seems to be a problem) So, I create the background rectangle, set its position, size and draw it, no problem. But I have another rectangle called tLine, and whenever I try to set it's size, it crashes. If I comment out setSize, it crashes on window->draw(tLine);. I can, however, set it's position.

This is weird, I can do all that fine with rect, the background rectangle :s

Here's my class:

http://pastebin.com/P7NhdkaM

Thanks for any help in advance =)

Pages: [1]
anything