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

Pages: [1]
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;
}
 

I use visual studio and have error:  gluBuild2Dmipmaps indefined

Pages: [1]
anything