How to add front screen in your OpenGL Project

Rajeev
How to add front screen in your OpenGL Project
In VTU lab for Computer Graphics, developing a mini-project is part of it. While developing CG mini-projects using OpenGL , there is need to present the project well. One must add front screen to the project which show the names of college, projects, guides and the project developers. It is good to have front screen as it provides introduction of the project. There are many ways of adding front screen to the project. Here I explains, the basic way of adding front screen to the mini-project. Typically what looks in the picture below. Let's get started. Simple keyboard interaction to start with First set a variable, initialized it to zero.         int flag=0; Write a function called frontscreen , which contains all the details which you want to display. void frontscreen(void) { glClear(GL_COLOR_BUFFER_BIT); glColor3f(0,0,1); drawstring(20.0,90.0,0.0,"NAME OF THE COLLEGE "); glColor3f(0.7,0,1); drawstring(21,82,0.0,"DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING"); glColor3…

5 comments

  1. Kumaranoop228
    i am getting error like drawstring is undeclared identifier...so what to do plzzzzz help
  2. Supreethak1
    even i am getting the same error
  3. Rajeev Kumar Singh
    As i mentioned in the end of the article you should write the code for drawstring. you have not written it, so probably the error will be there.

    I am posting the article for this so get the code from there ok!
  4. Rajeev Kumar Singh
    you too try to get the code for drawstring and then error will not be there.
  5. Ranjithjains
    i am getting an error like
    error C2371: 'mydisplay' : redefinition; different basic types
    how to resolve it...