Questions tagged [soil]

SOIL or Simple OpenGL Image Library is a lightweight image loading library for for C++ and C that is cross-platform.

SOIL stands for Simple OpenGL Image Library. It was created to be a lightweight image loading library for C++ and C and meant to be a static library.

Useful Links:

159 questions
0
votes
1 answer

OpenGL SOIL painting the entire screen with the texture colour

I'm trying to load a PNG texture in OpenGL using the SOIL libray, and show the texture in GL QUAD, but when I call the function, the image is loaded correctly, but change the color of entire screen! if a blue image, the screen changes to blue…
Joao
  • 3
  • 1
0
votes
1 answer

SOIL OpenGL Library crashes inside classes

I'm working on a simple 3D model loader using OpenGL and I wanted to add texture support. However, not wanting to needlessly rewrite an image library, I downloaded SOIL (Simple OpenGL Image Library) that I learned about in the NeHe tutorial on…
GraphicsMuncher
  • 4,583
  • 4
  • 35
  • 50
-1
votes
1 answer

OpenGL using SOIL to produce jpg only the image size is incorrect

I am using OpenGL to as part of a drawing application for iOS. When the user finishes drawing the texture is saved to a jpg using SOIL. The image appears correct in the view, when saved the output is oriented correctly (after inverting the image)…
Randoramma
  • 123
  • 9
-1
votes
1 answer

OpenGL Texture won't draw

I followed an opengl tutorial and created a more object oriented version. I want to draw a Texture but the only thing which works is the glClearColor command. I have no idea why it doesn't work. I tried everything. Here's the…
AlGrande
  • 167
  • 3
  • 18
-1
votes
1 answer

Opengl SOIL textureCoords not recognizing

I'm writing my program, that draws a quad with a texture. Here's my code: #include #include #define GLEW_STATIC #include #include #include #include extern const char*…
Alenprintf
  • 143
  • 1
  • 7
-1
votes
1 answer

OpenGl SOIL linking to visual studio

I have a problem with linking SOIL to my OpenGL project so I'm asking you if one can show me how to link it properly.
Alenprintf
  • 143
  • 1
  • 7
-1
votes
1 answer

Opengl glBindTexture Using Last Texture Loaded

opengl uses only the last texture loaded and I'm not sure why. Here is my code: GLuint loadTex(const char* c) { GLuint temp = SOIL_load_OGL_texture( c, SOIL_LOAD_AUTO, SOIL_CREATE_NEW_ID, SOIL_FLAG_MIPMAPS | SOIL_FLAG_INVERT_Y |…
Big Steve
  • 11
  • 2
-1
votes
1 answer

OpenGL texture loading with soil help need

Here is the code. Please help guys #include #include #include #include "SOIL.h" using namespace std; GLuint texture[1]; int LoadGLTextures() { texture[0] = SOIL_load_OGL_texture ( "NeHe.bmp", …
ZimCa
  • 1
  • 2
-1
votes
1 answer

C++ OpenGL (with SOIL addon) - Texture coming out shaded

I'm trying to learn OpenGL but I've not yet got the hang of it, as I encountered a problem at the first hurdle where I try to display a bright red square, but the image comes out as a maroon coloured square. (I apologize but I cannot post pictures…
Sammdahamm
  • 11
  • 10
1 2 3
10
11