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

Pages: [1]
1
Graphics / Issue with converting Texture to Image
« on: September 17, 2023, 09:17:08 pm »
Hello I am trying to convert from a texture to an image, and I have combed the sfml forums and sfml documentation and the only answer given is texture.copyFromImage(). However, this does not work, as I get an error message claiming class"sf::RenderTexture" has no member "copyFromImage". In order to make sure I wasnt missing something, I included every Sfml graphics header file. Has sfml been updated or am I doing something wrong?

2
General / Issue with framerate limits
« on: March 04, 2023, 10:30:25 pm »
I am, trying to build a visualization of different sorting algorithms using sfml, and sorting algorithms are computationally intense so I am trying to optimize them. I do not have a line of code that limits framerate anywhere, however, when I click off of the sfml window and click on the console the code runs about 7 times as fast. Is there a way to fix this problem and get the code to run faster without me clicking on the console?

3
General / Re: I cannot run my SFML programs in Release mode
« on: October 30, 2022, 09:01:02 pm »
Thank you, this worked!

4
General / I cannot run my SFML programs in Release mode
« on: October 30, 2022, 07:48:21 pm »
      I configured Sfml to work with all configurations, and my debug code works, however whenever I switch to release mode and try to run the program I get errors such as "Error   LNK2038   mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in Source.obj" and "Error   LNK2038   mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in Source.obj"
I use windows on my computer if it helps.


 

5
Graphics / Issue with drawing convex shape
« on: October 30, 2022, 04:50:36 pm »
I am trying to draw a convex shape with points that the user types in. I am having an issue where the shape does not show up if there are two points, And if there are more than two points, the shape is offset and does not connect the points I want. The program starts by asking how many points they want, and it  calls this number n.   I then store the X and Y coordinates in a vector, which I call whenever I need the points. Here is the code I am trying to use to draw the shape
shape.setPointCount(n);
        for (int a = 0; a <= n-1; ++a) {
            shape.setPoint(a, Vector2f(xc[a], yc[a]));
        }
Xc is the vector I use to store x coordinates, and yc is the vector I use to store Y coordinates. I later draw this shape. Why does this only work with more than two points, and why Is it offset when it does work?

Pages: [1]
anything