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

Pages: [1] 2
1
General / Re: Window Position Bug
« on: February 09, 2015, 04:22:07 pm »
this is really a bug?
may be you need to handle the resize event?

2
General / Re: SFML 2.2 and GLEW
« on: February 09, 2015, 03:55:53 pm »
In Code::Blocks everything works, but there are warnings:
Quote
=== Build: Release in GLS (compiler: GNU GCC Compiler) ===
Warning: resolving _glewInit by linking to _glewInit@0
Warning: resolving _glewGetErrorString by linking to _glewGetErrorString@4
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
=== Build finished: 0 error(s), 3 warning(s) (0 minute(s), 4 second(s)) ===
=== Run: Release in GLS (compiler: GNU GCC Compiler) ===

3
General / Re: SFML 2.2 and GLEW
« on: February 09, 2015, 11:26:09 am »
may be I need to use another version of glew?
current version 1.12.0

4
General / Re: SFML 2.2 and GLEW
« on: February 09, 2015, 10:58:59 am »
I don't understand the error messages...
Sorry, my visual studio only in russian language
Quote
1>LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: unresolved external symbol "_glewGetErrorString"
1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: unresolved external symbol "_glewInit"
Quote
1>main.obj : error LNK2001: unresolved external symbol "_glewInit@0"

5
General / Re: SFML 2.2 and GLEW
« on: February 09, 2015, 08:00:20 am »
Seriously?
Sorry, I don't understand the question?

6
General / Re: SFML 2.2 and GLEW
« on: February 09, 2015, 07:31:31 am »
My project settings (visual c++ 2010):
C/C++ / General / Additional Include Directories:
Quote
C:\Dev\glew-1.12.0\include;
C:\Dev\glm;
C:\Dev\SFML-2.2\include
Linker / General / Additional Library Directories:
Quote
C:\Dev\SFML-2.2\lib;
C:\Dev\glew-1.12.0\lib\Release\Win32
C/C++ / Preprocessor / Preprocessor Definitions:
Quote
SFML_STATIC;GLEW_STATIC;WIN32;NDEBUG;_CONSOLE
Linker » Input » Additional Dependencies:
Quote
glew.lib;
glew32s.lib;
winmm.lib;
freetype.lib;
jpeg.lib;
opengl32.lib;
sfml-graphics-s.lib;
sfml-window-s.lib;
sfml-system-s.lib;
%(AdditionalDependencies)
Errors:
Quote
1>glew.lib(glew.obj) : error LNK2005: ___glewCopyTexSubImage3D уже определен в glew32s.lib(glew.obj)
1>glew.lib(glew.obj) : error LNK2005: ___glewDrawRangeElements уже определен в glew32s.lib(glew.obj)
1>glew.lib(glew.obj) : error LNK2005: ___glewTexImage3D уже определен в glew32s.lib(glew.obj)
1>glew.lib(glew.obj) : error LNK2005: ___glewTexSubImage3D уже определен в glew32s.lib(glew.obj)
1>glew.lib(glew.obj) : error LNK2005: ___glewActiveTexture уже определен в glew32s.lib(glew.obj)
...


If Linker » Input » Additional Dependencies:
Quote
glew32s.lib;
winmm.lib;
freetype.lib;
jpeg.lib;
opengl32.lib;
sfml-graphics-s.lib;
sfml-window-s.lib;
sfml-system-s.lib;
%(AdditionalDependencies)
Errors:
Quote
1>LINK : warning LNK4098: библиотека по умолчанию "LIBCMT" противоречит использованию других библиотек; используйте параметр /NODEFAULTLIB:library
1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: неразрешенный внешний символ "_glewGetErrorString"
1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: неразрешенный внешний символ "_glewInit"


If Linker » Input » Additional Dependencies:
Quote
glew.lib;
winmm.lib;
freetype.lib;
jpeg.lib;
opengl32.lib;
sfml-graphics-s.lib;
sfml-window-s.lib;
sfml-system-s.lib;
%(AdditionalDependencies)
Errors:
Quote
1>main.obj : error LNK2001: неразрешенный внешний символ "_glewInit@0"

7
General / Re: SFML 2.2 and GLEW
« on: February 08, 2015, 07:37:37 pm »
Can't linking glew and sfml statically, the studio gives error that the glew functions already defined.
(click to show/hide)

8
General / SFML 2.2 and GLEW
« on: February 07, 2015, 08:56:53 pm »
Hi! Can't connect the glew library to the project, the studio gives error that the functions already defined or there are any conflicts.
Quote from tutorial: http://www.sfml-dev.org/tutorials/2.2/window-opengl.php
Quote
People sometimes think that SFML automatically includes GLEW (a library which manages OpenGL extensions) because SFML uses GLEW internally, but it's only an implementation detail. From the user's point of view, GLEW must be handled like any other external library.
Please explain in detail how to connect glew to sfml 2.2?

9
Graphics / Re: sf::Shader and glm::mat4
« on: February 07, 2015, 08:36:04 pm »
Hi! There is no progress on this issue? How to pass in the shader matrix 4x4?

10
Graphics / Re: sf::Shader and glm::mat4
« on: December 16, 2014, 09:24:15 pm »
I Get It. Thank you!

11
Graphics / Re: AW: sf::Shader and glm::mat4
« on: December 16, 2014, 08:22:46 pm »
He didnt mean literally. Its a figure of speech.
Sorry, I use Google Translate and may where it is not correctly put it?

12
Graphics / Re: AW: sf::Shader and glm::mat4
« on: December 16, 2014, 07:40:02 pm »
We're not your 24/7 programming support
Look at my profile, I am addressing here is very rare.

13
Graphics / Re: AW: sf::Shader and glm::mat4
« on: December 16, 2014, 07:30:29 pm »
What about providing the error?
sf :: Shader not support the transfer of a 4x4 matrix in the vertex shader

14
Graphics / sf::Shader and glm::mat4
« on: December 16, 2014, 06:52:04 pm »
Hi! How to pass in shader matrix 4x4?
vert.glsl:
attribute vec4 a_position;
attribute vec4 a_color;

uniform mat4 u_MVP;

varying vec4 v_color;

void main()
{
        v_color = a_color;
        gl_Position = u_MVP * a_position;
}
 
main.cpp
glm::mat4 projectionMatrix;
glm::mat4 viewMatrix;
glm::mat4 modelMatrix;
sf::Shader shader;
//...
if (!shader.loadFromFile("res/shaders/vert.glsl", "res/shaders/frag.glsl"))
{
        exit(1);
}
//...
sf::Shader::bind(&shader);
shader.setParameter("u_MVP", glm::value_ptr(projectionMatrix * viewMatrix * modelMatrix)); // error
//...
sf::Shader::bind(NULL);
 
Error in shader.setParameter. Please tell me the solution?

15
General / Re: AW: GLEW warnings
« on: May 12, 2014, 05:42:36 pm »
SFML uses GLEW as well, thus the linker might issue a warning.
I know, in my application SFML linked statically and i not linked glew32.lib or glew32s.lib

Pages: [1] 2
anything