Skip to content

antialias is not working #31

@kalluwa

Description

@kalluwa

hi, i have encountered a problem :

i write the following code the close antialias effect:

GL::Context& gl = window.GetContext(32, 24, 8, 0);

and 0 represent antialias is closed (antialias = 0)

// Choose final pixel format
const int pixelAttribs[] =
{
	WGL_DRAW_TO_WINDOW_ARB, GL_TRUE,
	WGL_SUPPORT_OPENGL_ARB, GL_TRUE,
	WGL_DOUBLE_BUFFER_ARB, GL_TRUE,
	WGL_PIXEL_TYPE_ARB, WGL_TYPE_RGBA_ARB,
	WGL_COLOR_BITS_ARB, color,
	WGL_DEPTH_BITS_ARB, depth,
	WGL_STENCIL_BITS_ARB, stencil,

//following two line should work but do nothing
	WGL_SAMPLE_BUFFERS_ARB, antialias > 1 ? GL_TRUE : GL_FALSE,
	WGL_SAMPLES_ARB, antialias > 1 ? antialias : 0,
	0
};

but i still got the blured triangle edge

2

anyway to solve this?

what i actually want :
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions