Find Jobs
Hire Freelancers

470263 Introduction to OpenGL

N/A

完了済み
投稿日: 13年以上前

N/A

完了時にお支払い
I have attached a word document explaining all of the details. Also I am using Microsoft Visual 2005 This is what needs to be done, Modify the OpenGL application as follows: • Put your name in the title bar of the application with the following lines of code after the ShowWindow call in WinMain (in [login to view URL]) : char str[32]; sprintf(str, "%s", "your name goes here"); SetWindowText(HDialog, str); Be sure to include the header file for the sprintf function at the top of [login to view URL], if not included: #include <stdio.h> • Change the OpenGL window's background color to light blue or grey by changing the call to the glClearColor function in CGfxOpenGL.cpp. i.e. change the following line of code near the beginning of bool CGfxOpenGL::Init() : glClearColor(0.0, 0.5, 0.0, 0.0); //green background • Change the color of the sphere to red using glColor3f(1, 0, 0); just before the sphere is drawn. It is done before the sphere is made because the glColor3f command presets the color state, before drawing. Note: The sphere of radius 1 centered at the origin (0,0,0) is then drawn with the function gluSphere(quadric, 1.0f, 20, 20). It has 20 slices (similar to lines of longitude) and 20 stacks (similar to lines of latitude) when drawn. • Add a second, different colored sphere to the scene. Place this second sphere in a different location by calling glTranslatef(15, 0, 0); before drawing the sphere with gluSphere. It is done before the sphere is made because the glTranslatef command moves the drawing state, before drawing. Thus, this last part has a total of three commands: change the color using glColor3f, then translate the scene using glTranslatef, and then draw the new sphere using gluSphere. Build and run the modified project. The output should look something like this:
プロジェクト ID: 2216164

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 12年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
I have it done already :) very easy. Please contact me!
$23 USD 0日以内
5.0 (11 レビュー)
2.9
2.9

クライアントについて

UNITED STATESのフラグ
Chicago, United States
4.7
26
メンバー登録日:1月 30, 2011

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。