• 大小: 30.23MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-06
  • 语言: 其他
  • 标签: open  inventor  

资源简介

光盘中包涵三维模型,源代码,opengl库以及纹理图片。大家一起学习,加油。

资源截图

代码片段和文件信息

// exam2_1.cpp : Defines the entry point for the console application.
//
// 首先保证正确地安装了OpenGL库,在运行本程序时需要在VC 6.0中设置以下库:
// Project->settings->link->object/library modules 中添加以下库:opengl32.lib glaux.lib
// 考虑程序的后续扩展,最好也添加 glu32.lib库
//

#include “stdafx.h“

#include 
#include 
#include 

void CALLBACK display(void)
{
glClearColor(0.0 0.0 0.0 0.0); // 置背景色为黑色
glClear(GL_COLOR_BUFFER_BIT); // 清除颜色缓冲区
glColor3f(1.0 1.0 1.0); // 设置象素颜色为白色

glMatrixMode(GL_PROJECTION); // 初始化观察参数
glLoadIdentity();
glOrtho(-1.0 1.0 -1.0 1.0 -1.0 1.0);

glBegin(GL_POLYGON);  // 绘制多边形
glVertex2f(-0.5 -0.5);
glVertex2f(-0.5 0.5);
glVertex2f(0.5 0.5);
glVertex2f(0.5 -0.5);
glEnd();

glFlush(); // 执行所有的OpenGL命令
}

int main(int argc char** argv)
{
auxInitDisplayMode(AUX_SINGLE | AUX_RGBA);
auxInitPosition(0 0 500 500);
auxInitWindow(argv[0]);

auxMainLoop(display);

return 0;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         27  2006-04-14 22:34  OpenInventor\autorun.inf

     文件     204904  2004-01-21 11:38  OpenInventor\ch02\exam2_1\Debug\exam2_1.exe

     文件     301280  2004-01-21 11:38  OpenInventor\ch02\exam2_1\Debug\exam2_1.ilk

     文件      45469  2004-01-21 11:38  OpenInventor\ch02\exam2_1\Debug\exam2_1.obj

     文件     187248  2004-01-18 22:04  OpenInventor\ch02\exam2_1\Debug\exam2_1.pch

     文件     558080  2004-01-21 11:38  OpenInventor\ch02\exam2_1\Debug\exam2_1.pdb

     文件       2248  2004-01-18 22:04  OpenInventor\ch02\exam2_1\Debug\StdAfx.obj

     文件     132096  2004-01-21 11:38  OpenInventor\ch02\exam2_1\Debug\vc60.idb

     文件     233472  2004-01-21 11:38  OpenInventor\ch02\exam2_1\Debug\vc60.pdb

     文件       1099  2004-01-21 11:37  OpenInventor\ch02\exam2_1\exam2_1.cpp

     文件       4603  2004-01-21 04:56  OpenInventor\ch02\exam2_1\exam2_1.dsp

     文件        539  2004-01-18 22:02  OpenInventor\ch02\exam2_1\exam2_1.dsw

     文件      41984  2004-01-21 11:38  OpenInventor\ch02\exam2_1\exam2_1.ncb

     文件      48640  2004-01-21 11:38  OpenInventor\ch02\exam2_1\exam2_1.opt

     文件       1369  2004-01-21 11:38  OpenInventor\ch02\exam2_1\exam2_1.plg

     文件       1214  2004-01-18 22:02  OpenInventor\ch02\exam2_1\ReadMe.txt

     文件        294  2004-01-18 22:02  OpenInventor\ch02\exam2_1\StdAfx.cpp

     文件        667  2004-01-18 22:02  OpenInventor\ch02\exam2_1\StdAfx.h

     文件     180328  2004-01-21 11:38  OpenInventor\ch03\exam3_1\Debug\exam3_1.exe

     文件     204612  2004-01-21 11:38  OpenInventor\ch03\exam3_1\Debug\exam3_1.ilk

     文件      31259  2004-01-21 11:38  OpenInventor\ch03\exam3_1\Debug\exam3_1.obj

     文件     203772  2004-01-19 01:23  OpenInventor\ch03\exam3_1\Debug\exam3_1.pch

     文件     443392  2004-01-21 11:38  OpenInventor\ch03\exam3_1\Debug\exam3_1.pdb

     文件       2355  2004-01-19 01:23  OpenInventor\ch03\exam3_1\Debug\StdAfx.obj

     文件     263168  2004-01-21 11:38  OpenInventor\ch03\exam3_1\Debug\vc60.idb

     文件     372736  2004-01-21 11:38  OpenInventor\ch03\exam3_1\Debug\vc60.pdb

     文件        994  2004-01-21 11:38  OpenInventor\ch03\exam3_1\exam3_1.cpp

     文件       4548  2004-01-19 01:23  OpenInventor\ch03\exam3_1\exam3_1.dsp

     文件        539  2004-01-19 01:26  OpenInventor\ch03\exam3_1\exam3_1.dsw

     文件      41984  2004-01-21 11:38  OpenInventor\ch03\exam3_1\exam3_1.ncb

............此处省略1314个文件信息

评论

共有 条评论