sfml

How to fix: “bundle format unrecognized, invalid, or unsuitable”

时光怂恿深爱的人放手 提交于 2020-01-06 05:59:44
问题 I create project to school and after update my MacOS to Catalina SFML start doesn't work. i had been used this links at my project still doesn't work. Code sign error : bundle format unrecognized, invalid, or unsuitable Xcode - Bundle format unrecognized, invalid, or unsuitable https://github.com/CocoaPods/CocoaPods/issues/5742 https://github.com/bitstadium/HockeySDK-iOS/issues/363 /Users/nintyswinty/Library/Developer/Xcode/DerivedData/SFML-gsdieoedqhlmxqahfxqzujzewoid/Build/Products/Debug

Sprite becomes white box when I implement function

情到浓时终转凉″ 提交于 2020-01-06 03:09:30
问题 //Main.c #include "Engine.h" int main() { Game app; //Menu Class Here app.run(); return 0; } //Engine.cpp #include "Engine.h" Game::Game() { DASH = 0, x = 0, y = 0; total_enemies = 1; p_timer = 0; e_timer = 0; } Game::~Game() { } void Game::run() { sf::RenderWindow window(sf::VideoMode(SCREEN_X, SCREEN_Y), "Shogun Master"); srand((unsigned int)time(NULL)); trying to replace the "creates player" here with void game::createPlayer that's located at the bottom of this file. //Creates Player

“libgcc_s_sjlj-1.dll” is missing

ε祈祈猫儿з 提交于 2020-01-05 13:08:49
问题 I am trying to run my first SFML application. I can run it via Code Blocks environment, but I can't run it through the Explorer - an error appears that says: "libgcc_s_sjlj-1.dll is missing". I added these lines to my linker options: -static -static-libgcc -static-libstdc++ However, after trying to compile it, I see an error in the build log: mingw32-g++.exe: error: unrecognized command line option '-static-libstdc++' How can I fix it? My GCC version is 4.7.1 TDM-1 回答1: GCC 4.7.1 is a rather

How to play a SFML game on another computer

我们两清 提交于 2020-01-05 05:45:11
问题 I've been searching a lot for this, but can't seem to find an answer who really does the job. I want to able to play my game, using C++ with SFML, on other computers than my own. I've tried to simply copy the .exe file and the images over, but I just get errors about missing .dll files when I do that. I've seen other people on the SFML forums do this, so it must be possible somehow... I use Microsoft Visual C++ 2010. 回答1: If you're planning on deploying an SFML application, statically

White Square in SFML, Sprite and texture stored in different objects

試著忘記壹切 提交于 2020-01-04 08:11:00
问题 I'm experiencing the white square problem in SFML. I'm working on a game that uses a tiled map. A Game class will load the tile set as a sf::Texture from a file and then a getTileById function in Game will "Cut" out the appropriate tile from the tileset texture. Eg. sf::Sprite GameScreen::getSpriteByPos(int pos, sf::Texture texture, int tileSize) { sf::IntRect subRect; subRect.left = (pos-1)*tileSize; subRect.top = (pos-1)*tileSize; subRect.width = tileSize; subRect.height = tileSize; sf:

Malformed Freetype Framework in SFML Mac App

六月ゝ 毕业季﹏ 提交于 2020-01-04 07:49:07
问题 We just wrapped up a game in SFML for Mac and submitted it to the Mac store. We are using SFML 2.0. We're using a standard SFML project in Xcode with the link script that copies over the required frameworks. The game works great on all computers from Mac OSX 10.6-10.9. Trouble is, when we submit to the App Store, we get an email back saying the following: Malformed Framework - The framework bundle (Shibashiba.app/Contents/Frameworks/freetype.framework) must contain a symbolic link 'freetype'

SFML Views setCenter vs rotation

*爱你&永不变心* 提交于 2020-01-04 06:30:46
问题 I have a view with same dimensions of original window (500,300) I apply view.zoom(2) to leave the view at half the size. Now the view is centered. I want to move the view to the upper left corner of the original window. So I put view.setCenter(500,300); The view is now correctly positioned in the upper corner of the original window. But now I want to rotate the view, making the center of the view its own top left corner, ie (0,0): view.setRotation(5); As you can see, the center of the axis of

SFML Views setCenter vs rotation

妖精的绣舞 提交于 2020-01-04 06:29:03
问题 I have a view with same dimensions of original window (500,300) I apply view.zoom(2) to leave the view at half the size. Now the view is centered. I want to move the view to the upper left corner of the original window. So I put view.setCenter(500,300); The view is now correctly positioned in the upper corner of the original window. But now I want to rotate the view, making the center of the view its own top left corner, ie (0,0): view.setRotation(5); As you can see, the center of the axis of

VS2012 Error: The application was unable to start correctly (0xc000007b)

守給你的承諾、 提交于 2019-12-29 08:43:07
问题 I received the error "The application was unable to start correctly (0xc000007b)" after attempting to run my exe file of my C++ SFML 32-bit program I built in Visual Studio 2012. I statically linked the SFML dlls in my project, but incorporated the following dlls along with my program: libsndfile-1.dll openal32.dll msvcp110.dll msvcp110d.dll msvcr110.dll msvcr110d.dll What is the problem? 回答1: The actual error code that you encountered is 0xC000007B . That is the NTSTATUS error code STATUS

OpenCV 2.3: Convert Mat to RGBA pixel array

本秂侑毒 提交于 2019-12-29 06:21:31
问题 I am attempting to use OpenCV to grab frames from a webcam and display them in a window using SFML. VideoCapture returns frames in OpenCV's Mat format. To display the frames, SFML requires a 1D array of pixels in its uint8 format, which (as far as I can tell) is interchangeable with uchar. This array is expected to represent 32 bits per pixel RGBA. So, I have a uchar array, and I'm looping over the Mat data and copying each pixel: VideoCapture cap(0); Mat frame; cap >> frame; uchar* camData =