Meatz0r
04-16-2011, 01:40 PM
Good night to all,
I'm new in OpenGL, and i already faced with problem
I Cant enable changing line styles
<div class="ubbcode-block"><div class="ubbcode-header">Click to reveal.. <input type="button" class="form-button" value="Show me!" onclick="toggle_spoiler(this, 'Yikes, my eyes!', 'Show me!')" />]<div style="display: none;">
#include <GL/glut.h>
void init(void){
glClearColor(0.0,0.0,0.0,0.0);
glShadeModel(GL_FLAT);
}
void display(void){
int i;
glClear(GL_COLOR_BUFFER_BIT);
//&#1073;&#1077;&#1083;&#1099;&#1081; &#1094;&#1074;&#1077;&#1090; &#1074;&#1089;&#1077;&#1093; &#1083;&#1080;&#1085;&#1080;&#1081;
glColor3f(1.0,1.0,1.0);
//3 &#1083;&#1080;&#1085;&#1080;&#1080; &#1088;&#1072;&#1079;&#1085;&#1086;&#1075;&#108 6; &#1074;&#1080;&#1076;&#1072;
glEnable(GL_LINE_STRIPPLE);
glLineStripple(1,0x3F07);
}
void reshape(int w, int h){
glViewport(0,0,(GLsizei)w,(GLsizei)h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity;
gluOrtho2D(0.0, (GLdouble) w, 0.0, (GLdouble) h);
}
main(int argc,char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);
glutInitWindowSize(400,150);
glutInitWindowPosition(100,100);
glutCreateWindow(argv[0]);
init();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutMainLoop;
return 0;
}
[/QUOTE]</div>
VC informs me,that
glEnable(GL_LINE_STRIPPLE);
glLineStripple(1,0x3F07);
is incorrect
GL_LINE_STRIPPLE
"ident. undefined"
i have same warning for
glLineStripple
I use GLUT and VC 10.
And sorry for my English
I'm new in OpenGL, and i already faced with problem
I Cant enable changing line styles
<div class="ubbcode-block"><div class="ubbcode-header">Click to reveal.. <input type="button" class="form-button" value="Show me!" onclick="toggle_spoiler(this, 'Yikes, my eyes!', 'Show me!')" />]<div style="display: none;">
#include <GL/glut.h>
void init(void){
glClearColor(0.0,0.0,0.0,0.0);
glShadeModel(GL_FLAT);
}
void display(void){
int i;
glClear(GL_COLOR_BUFFER_BIT);
//&#1073;&#1077;&#1083;&#1099;&#1081; &#1094;&#1074;&#1077;&#1090; &#1074;&#1089;&#1077;&#1093; &#1083;&#1080;&#1085;&#1080;&#1081;
glColor3f(1.0,1.0,1.0);
//3 &#1083;&#1080;&#1085;&#1080;&#1080; &#1088;&#1072;&#1079;&#1085;&#1086;&#1075;&#108 6; &#1074;&#1080;&#1076;&#1072;
glEnable(GL_LINE_STRIPPLE);
glLineStripple(1,0x3F07);
}
void reshape(int w, int h){
glViewport(0,0,(GLsizei)w,(GLsizei)h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity;
gluOrtho2D(0.0, (GLdouble) w, 0.0, (GLdouble) h);
}
main(int argc,char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);
glutInitWindowSize(400,150);
glutInitWindowPosition(100,100);
glutCreateWindow(argv[0]);
init();
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutMainLoop;
return 0;
}
[/QUOTE]</div>
VC informs me,that
glEnable(GL_LINE_STRIPPLE);
glLineStripple(1,0x3F07);
is incorrect
GL_LINE_STRIPPLE
"ident. undefined"
i have same warning for
glLineStripple
I use GLUT and VC 10.
And sorry for my English