30-04-2017, 09:25 PM
Please send tha open CL code for moving train
train in opengl program
|
void TRAINS(int x1,int y1,int a,int b)
{
int i=0; glBegin(GL_QUADS);
glColor3f(0,0.0,1.0); //ENGINE
glVertex2f(x1,y1); //lengh of engine=60;height of engine=30;
glColor3f(0,0.0,1.0);
glVertex2f(x1+60,y1);
glColor3f(1.0,0.0,0.0);
glVertex2f(x1+60,y1-30);
glColor3f(0,0.0,0.0);
glVertex2f(x1,y1-30);
glEnd();
while(i<3) {
glBegin(GL_QUADS); //BOGIES
glColor3f(1.0,0.0,0.0); //For right train a=795,b=510
glVertex2f(a,b);
glColor3f(1.0,0.0,0.0);
glVertex2f(a+60,b);
glColor3f(1.0,0.0,0.0);
glVertex2f(a+60,b-20);
glColor3f(1.0,0.0,0.0);
glVertex2f(a,b-20);
glEnd();
a+=65; i++;
}
}
« Next Oldest | Next Newest »
|
Tagged Pages: opengl project on train source code, |
Possibly Related Threads... | |||||
Thread | Author | Replies | Views | Last Post | |
Train Ticket | 0 | 1,870 |
26-11-2020, 12:26 AM Last Post: |
||
program for ticket reservation using multithreading in java | 0 | 1,084 |
08-10-2018, 10:00 AM Last Post: Guest |
||
reservation program using queue in c | 0 | 611 |
04-10-2018, 07:58 PM Last Post: Guest |
||
c graphics program for moving train with output | 0 | 539 |
03-08-2018, 02:20 PM Last Post: Guest |
||
ppt of train distance indicator for unguarded level crossing | 0 | 437 |
11-07-2018, 08:18 AM Last Post: Guest |
||
opengl source code for rocket launch | 0 | 573 |
08-06-2018, 08:32 AM Last Post: Guest |
||
source code of bellman ford algorithm in opengl | 0 | 671 |
24-05-2018, 12:47 AM Last Post: Guest |
||
code for airshow using opengl | 0 | 512 |
20-05-2018, 11:56 AM Last Post: Guest |
||
opengl project for simulation dam | 0 | 588 |
17-05-2018, 01:57 PM Last Post: Guest |
||
project report bellman ford algorithm using opengl | 0 | 686 |
17-05-2018, 01:39 PM Last Post: Guest |