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

Pages: [1]
1
Graphics / Rendertarget - sf::text
« on: January 29, 2011, 05:28:40 pm »
Hi,

Can i use sf::text with the normal Window? Its not a rendertarget. But how do i display text then?

lg

2
Window / Windows Messages
« on: December 10, 2010, 04:00:22 pm »
Hey,

For some reason my RenderWindow is not answering to events like moving the window around or minimize, maximize. The OpenGL stuff is rendered correctly, but the windows does not respond to any windows7 messages. I render in a thread.

3
Window / Input in the Mainthread
« on: October 28, 2010, 04:02:54 pm »
Hi,

I read somewhere that all Input have to be handled in the MainThread of the Program. Is that a SFML restriction or general for Windows?

I found this here and thought, that it should be possible: http://msdn.microsoft.com/en-us/library/ms682523(v=VS.85).aspx

4
General / Linker error GLEW / Jpeg
« on: October 26, 2010, 01:46:07 am »
Hi,

I just reconfigured my pc, i compiled sfml2 for x64 static release and debug. Now i want to use it, but in my new project, which uses sfml2 i get tose linker errors:

1>------ Build started: Project: IMGUI, Configuration: Release x64 ------
1>Build started 26.10.2010 01:34:24.
1>InitializeBuildStatus:
1>  Touching "x64\Release\IMGUI.unsuccessfulbuild".
1>ClCompile:
1>  Renderer.cpp
1>sfml2-graphics-s.lib(Renderer.obj) : error LNK2001: unresolved external symbol __glewBlendFuncSeparateEXT
1>sfml2-graphics-s.lib(Renderer.obj) : error LNK2001: unresolved external symbol __GLEW_EXT_blend_func_separate
1>sfml2-graphics-s.lib(Renderer.obj) : error LNK2001: unresolved external symbol __glewUseProgramObjectARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewUseProgramObjectARB
1>sfml2-graphics-s.lib(Image.obj) : error LNK2001: unresolved external symbol __GLEW_ARB_texture_non_power_of_two
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __GLEW_ARB_fragment_shader
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __GLEW_ARB_vertex_shader
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __GLEW_ARB_shader_objects
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __GLEW_ARB_shading_language_100
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewUniform1fARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewGetUniformLocationARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewGetHandleARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewUniform2fARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewUniform3fARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewUniform4fARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewLinkProgramARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewAttachObjectARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewGetInfoLogARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewGetObjectParameterivARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewCompileShaderARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewShaderSourceARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewCreateShaderObjectARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewCreateProgramObjectARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewDeleteObjectARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewActiveTextureARB
1>sfml2-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol __glewUniform1iARB
1>sfml2-graphics-s.lib(GLCheck.obj) : error LNK2001: unresolved external symbol glewInit
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_destroy_compress
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_finish_compress
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_write_scanlines
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_start_compress
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_set_quality
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_set_defaults
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_stdio_dest
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_CreateCompress
1>sfml2-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol jpeg_std_error
1>D:\CodingCpp\Projects\Dipl-Thurau\x64\Release\IMGUI.exe : fatal error LNK1120: 35 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:02.87
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

5
Feature requests / sf::Input.getKeys()
« on: June 12, 2010, 02:10:04 am »
Hello,

I would like to have a function sf::Input.getKeys() like that:

Code: [Select]
bool[Key::Count] sf::Input Input::getKeys() {
 return myKeys;
}


The Problem is, that iw ould like to know if a Key was pressed in this frame. like an "OnPress" Event. With that function i could test the array in the current frame and in the last frame.

Maybe you can even add this to the library, so i dont have to program it on my own? Same would be with Mouseclicks.

bool Input::isKeyHold()
bool Input::isKeyPressed()
bool Input::isKeyReleased()

lg

Pages: [1]