wtf.. im using SFML only for window and input things.. i render only using opengl
i initialise gl like this:
// glDepthMask(GL_TRUE);
// Enable Texture Mapping ( NEW )
glShadeModel(GL_SMOOTH); // Enable Smooth Shading
glClearColor(0.0f, 0.0f, 0.0f, 0.5f); // Black Background
glClearDepth(1.0f); // Depth Buffer Setup
glEnable(GL_DEPTH_TEST); // Enables Depth Testing
glDepthFunc(GL_LEQUAL); // The Type Of Depth Testing To Do
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // Really Nice Perspective Calculations
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER, 0.5f);
// Setup a perspective projection
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0.0f,1.0f,1.0f,0.0f);
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glLoadIdentity(); // Reset The Modelview Matrix
drawing like this
glColor3f(1.0f,1.0f,1.0f);
glEnable(GL_TEXTURE_2D);
//glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glPushMatrix();
glColor4f(1.0f,1.0f,1.0f,0.3f);
glBindTexture(GL_TEXTURE_2D, (*texture)[(int)action]);
glBegin(GL_QUADS);
for (int i=0;i<4;++i)
{
glTexCoord2f(Tex(i).x, Tex(i).y) ;
glVertex2f(Xyz(i).x, Xyz(i).y);
}
glEnd();
glDisable(GL_TEXTURE_2D);
glFlush();
trying to use glEnable(GL_BLEND) anywhere here .. but then nothing after glColor4f(1.0f,1.0f,1.0f,0.3f) shows up
edit:oh and the window im using is sf::Window