VIA RAID ; C++ OpenGL

Posted by VigilantPsyche on April 5, 2008, 2:24 p.m.

Hello, peeps.

Since I got my laptop repaired its had a program called VIA RAID on it, now I looked into this a little and it turns out its for optimizing multilple HDs. So my question is: Can I safely remove this program? I think yes, beacause if I kill the proccess with task mgr nothing bad seems to happen but I thought I'd best check…

What else…

Ah yes, in other news, I be learning C++ with devC++. Having covered the basics I'm now looking into openGL, but I'm a little stuck as to how to install openGL and access its functionality…

Also, check out the easter egg in this vid; its hilarious:

http://www.newgrounds.com/portal/view/406196

(Click the small circle in the middle and then the egg #1)

Anyway, adieu…

"Sunday, Monday, Happy Days.

Tuesday, Wednesday, Happy Days.

Thursday, Friday, Happy Days.

Saturday, What a day,

Groovin' all week with you.

These days are all,

Happy and Free. (Those Happy Days)

These days are all,

Share them with me. (oh baby)

Goodbye grey sky, hello blue.

There's nothing can hold me when I hold you.

Feels so right, it can't be wrong.

Rockin' and rollin' all week long.

These days are all,

Share them with me. (Those Happy Days)

These days are all, Happy and Free.

These Happy Days are your's and mine, Happy Days."

Comments

biggoron 16 years, 7 months ago

Quote:
#include <GL/gl.h>

#include <GL/glu.h>

#include <GL/glut.h>

void init(void);

void display(void);

void reshape(int, int);

void keyboard(unsigned char, int, int);

void idle(void);

int main(int argc, char* argv[])

{

glutInit(&argc, argv);

glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);

glutInitWindowPosition(100, 100);

glutInitWindowSize(640, 480);

glutCreateWindow(argv[0]);

init();

glutDisplayFunc(display);

glutReshapeFunc(reshape);

glutKeyboardFunc(keyboard);

glutIdleFunc(idle);

glutMainLoop();

return 0;

}

void init(void)

{

glColor3f(1, 1, 1);

glClearColor(0, 0, 0, 0);

glClearDepth(1);

glEnable(GL_DEPTH_TEST);

glDepthFunc(GL_LEQUAL);

}

void display(void)

{

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

glutSwapBuffers();

}

void reshape(int w, int h)

{

glViewport(0, 0, w, h);

glMatrixMode(GL_PROJECTION);

glLoadIdentity();

gluPerspective(45, (float)w/(float)h, 1, 32);

glMatrixMode(GL_MODELVIEW);

glLoadIdentity();

gluLookAt(5, 5, 5, 0, 0, 0, 0, 1, 0);

}

void keyboard(unsigned char key, int x, int y)

{

switch(key) {

default:

return;

}

}

void idle(void)

{

glutPostRedisplay();

}
My base GL project code.