Question about Video Game Consoles & Games

Open Question

Brainvita project using opengl and source code this is a simple marble game ,

Posted by on

5 Suggested Answers

lucus123
  • 24 Answers

SOURCE: Write a program in C/C++ using OpenGL to draw a triangle of green

Hi,
Just go on the Web and search for ``Free C or C++ compiler`` using Google or else...you will get plenty of resources since I believe you are just starting to learn programming I think you will find plenty of stuff to play with on the Web before spending 600$ on a full fledge compiler...don`t you think so?.

Lucus123

Posted on Apr 02, 2009

  • 7 Answers

SOURCE: creating a simple game using delphi language...

there are some game examples in the delphi demo folder.

Posted on Jun 29, 2009

paul7of9
  • 1189 Answers

SOURCE: I want to create a mini project in opengl. the

Hi, the information that you may need can be found on this "link" http://www.freedownloadmanager.org/downloads/image-tracer-109780.html

Posted on Feb 22, 2010

  • 1 Answer

SOURCE: need a simple opengl project for my 6th sem B.E project

I need to create an opengl code for a car

Posted on Apr 23, 2010

  • 65 Answers

SOURCE: source code for implementation of

Source code:

#include
using namespace std;
class linklist
{
private:
struct node
{
int data;
node *link;
}*p;
public:
linklist();
void append( int num );
void add_as_first( int num );
void addafter( int c, int num );
void del( int num );
void display();
int count();
~linklist();
};
linklist::linklist()
{
p=NULL;
}
void linklist::append(int num)
{
node *q,*t;
if( p == NULL )
{
p = new node;
p->data = num;
p->link = NULL;
}
else
{
q = p;
while( q->link != NULL )
q = q->link;
t = new node;
t->data = num;
t->link = NULL;
q->link = t;
}
}
void linklist::add_as_first(int num)
{
node *q;
q = new node;
q->data = num;
q->link = p;
p = q;
}
void linklist::addafter( int c, int num)
{
node *q,*t;
int i;
for(i=0,q=p;i {
q = q->link;
if( q == NULL )
{
cout return;
}
}
t = new node;
t->data = num;
t->link = q->link;
q->link = t;
}
void linklist::del( int num )
{
node *q,*r;
q = p;
if( q->data == num )
{
p = q->link;
delete q;
return;
}
r = q;
while( q!=NULL )
{
if( q->data == num )
{
r->link = q->link;
delete q;
return;
}
r = q;
q = q->link;
}
cout}
void linklist::display()
{
node *q;
cout for( q = p ; q != NULL ; q = q->link )
coutdata;
}
int linklist::count()
{
node *q;
int c=0;
for( q=p ; q != NULL ; q = q->link )
c++;
return c;
}
linklist::~linklist()
{
node *q;
if( p == NULL )
return;
while( p != NULL )
{
q = p->link;
delete p;
p = q;
}
}
int main()
{
linklist ll;
cout ll.append(12);
ll.append(13);
ll.append(23);
ll.append(43);
ll.append(44);
ll.append(50);
ll.add_as_first(2);
ll.add_as_first(1);
ll.addafter(3,333);
ll.addafter(6,666);
ll.display();
cout ll.del(333);
ll.del(12);
ll.del(98);
cout return 0;
}

Posted on May 19, 2011

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Project on OpenGL


http://nehe.gamedev.net/lesson.asp?index=01
There are the best set of lessons for OpenGL beginners.

May 21, 2009 | Advanced Graphics Programming Using OpenGL...

1 Answer

I want a program in openGL for the paint editor


i want a mini project on opengl the topic is graphics ediotor jst like ms paint

May 20, 2009 | Advanced Graphics Programming Using OpenGL...

1 Answer

Opengl code


OpenGL doesn't handle photonics or any other low-level physics - you'll either need a raytracer, such as POVRAY or Blender, or you'll have to write the physics yourself, to emulate light rays of varying colours (I recommend using a HSL colour space for your physics, only translating to RGB when rendering the frame).
The refraction of a ray at the interface of the prism and the "air" can be calculated using Index of Refraction, correction factor to account for different refraction dependent on frequency (Hue) and a random number generator to emulate slight scattering.

Apr 24, 2009 | Advanced Graphics Programming Using OpenGL...

Not finding what you are looking for?
Video Game Consoles & Games Logo

Related Topics:

783 people viewed this question

Ask a Question

Usually answered in minutes!

Top Video Game Consoles & Games Experts

Josh Whitehead
Josh Whitehead

Level 3 Expert

1148 Answers

yadayada
yadayada

Level 3 Expert

69199 Answers

Brad Brown

Level 3 Expert

15024 Answers

Are you a Video Game Console and Game Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...