1
Graphics / gluBuild2Dmipmaps indefined
« on: April 03, 2024, 05:07:53 pm »#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include <SFML/Graphics.hpp>
#include <gl\glu.h>
#include <gl\gl.h>
#pragma comment( lib, "OpenGL32.lib" )
#pragma comment( lib, "glu32.lib" )
using namespace sf;
int main()
{
// create the window
sf::Window window(sf::VideoMode(800, 600), "OpenGL");
Texture backgroundTexture;
backgroundTexture.loadFromFile("images/background.png");
Sprite backgroundSprite(backgroundTexture);
GLuint texture = 0;
{
Image image;
image.loadFromFile("images/side.png");
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
gluBuild2Dmipmaps //error indefined
}
return 0;
}
#include <SFML/OpenGL.hpp>
#include <SFML/Graphics.hpp>
#include <gl\glu.h>
#include <gl\gl.h>
#pragma comment( lib, "OpenGL32.lib" )
#pragma comment( lib, "glu32.lib" )
using namespace sf;
int main()
{
// create the window
sf::Window window(sf::VideoMode(800, 600), "OpenGL");
Texture backgroundTexture;
backgroundTexture.loadFromFile("images/background.png");
Sprite backgroundSprite(backgroundTexture);
GLuint texture = 0;
{
Image image;
image.loadFromFile("images/side.png");
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
gluBuild2Dmipmaps //error indefined
}
return 0;
}
I use visual studio and have error: gluBuild2Dmipmaps indefined