diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.exe" "b/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.exe" new file mode 100644 index 0000000..dca7d4d Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.exe" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.ilk" "b/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.ilk" new file mode 100644 index 0000000..fcb969d Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.ilk" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.pdb" "b/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.pdb" new file mode 100644 index 0000000..a146553 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/Debug/opengl_homework2.pdb" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.ncb" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.ncb" new file mode 100644 index 0000000..389935a Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.ncb" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.sln" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.sln" new file mode 100644 index 0000000..8cc3bea --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.sln" @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "opengl_homework2", "opengl_homework2\opengl_homework2.vcproj", "{2C992432-235A-4A98-95F1-A4DC9F09B38C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2C992432-235A-4A98-95F1-A4DC9F09B38C}.Debug|Win32.ActiveCfg = Debug|Win32 + {2C992432-235A-4A98-95F1-A4DC9F09B38C}.Debug|Win32.Build.0 = Debug|Win32 + {2C992432-235A-4A98-95F1-A4DC9F09B38C}.Release|Win32.ActiveCfg = Release|Win32 + {2C992432-235A-4A98-95F1-A4DC9F09B38C}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.suo" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.suo" new file mode 100644 index 0000000..784f14c Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2.suo" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/BuildLog.htm" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/BuildLog.htm" new file mode 100644 index 0000000..4676b5f Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/BuildLog.htm" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/mt.dep" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/mt.dep" new file mode 100644 index 0000000..a966b2c --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/mt.dep" @@ -0,0 +1 @@ +Manifest resource last updated at 0:20:42.25 on 2016/01/09 ÖÜÁù diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.embed.manifest" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.embed.manifest" new file mode 100644 index 0000000..b59f54b --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.embed.manifest" @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.embed.manifest.res" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.embed.manifest.res" new file mode 100644 index 0000000..7ebec5c Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.embed.manifest.res" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.intermediate.manifest" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.intermediate.manifest" new file mode 100644 index 0000000..a6ed682 --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/opengl_homework2.exe.intermediate.manifest" @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/vc90.idb" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/vc90.idb" new file mode 100644 index 0000000..4280875 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/vc90.idb" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/vc90.pdb" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/vc90.pdb" new file mode 100644 index 0000000..472c890 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Debug/vc90.pdb" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Earth.bmp" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Earth.bmp" new file mode 100644 index 0000000..1c889b7 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Earth.bmp" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Moon.bmp" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Moon.bmp" new file mode 100644 index 0000000..12c31b4 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Moon.bmp" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/OGLdpf.log" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/OGLdpf.log" new file mode 100644 index 0000000..e69de29 diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/ReadMe.txt" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/ReadMe.txt" new file mode 100644 index 0000000..b7c3e8b --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/ReadMe.txt" @@ -0,0 +1,33 @@ +======================================================================== + CONSOLE APPLICATION : opengl_homework2 Project Overview +======================================================================== + +AppWizard has created this opengl_homework2 application for you. + +This file contains a summary of what you will find in each of the files that +make up your opengl_homework2 application. + + +opengl_homework2.vcproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +opengl_homework2.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named opengl_homework2.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Sun.bmp" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Sun.bmp" new file mode 100644 index 0000000..907349b Binary files /dev/null and "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/Sun.bmp" differ diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.cpp" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.cpp" new file mode 100644 index 0000000..9cf3182 --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.cpp" @@ -0,0 +1,223 @@ +// opengl_homework2.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include +#include +#include + +using namespace std; + +static GLfloat sunRevolute = 0.0f; //Ì«Ñô×Ô´«ÌìÊý +static GLfloat earthRevolute = 0.0f; //µØÇò×Ô´«ÌìÊý +static GLfloat earthRotate = 200.0f; //µØÇò¹«×ªÌìÊý +static GLfloat moonRevolute = 0.0f; //ÔÂÇò×Ô´«ÌìÊý +static GLfloat moonRotate = 10.0f; //ÔÂÇò¹«×ªÌìÊý + +GLUquadricObj *sunQuadObj; //´´½¨¶þ´Î·½³Ì¶ÔÏó +SDL_Surface *sunSurface = NULL; +GLuint sunTexture; + +GLUquadricObj *earthQuadObj; +SDL_Surface *earthSurface; +GLuint earthTexture; + +GLUquadricObj *moonQuadObj; +SDL_Surface *moonSurface; +GLuint moonTexture; + +void ShutdownRC() +{ + glDeleteTextures(1, &sunTexture); + glDeleteTextures(1, &earthTexture); + glDeleteTextures(1, &moonTexture); + glDisable(GL_TEXTURE_2D); + glDisable(GL_LIGHT0); + glDisable(GL_LIGHTING); + glDisable(GL_DEPTH_TEST); +} + +void myDisplay(void){ + glClearColor(0.0f, 0.0f, 0.0f, 0.0f); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + gluPerspective(75,1,1,0); + glMatrixMode(GL_MODELVIEW); + glLoadIdentity(); + gluLookAt(0,0,-25,0,0,0,0,1,0); + + //¶¨ÒåÌ«Ñô¹âÔ´ + GLfloat sun_light_position[] = {0.0f, 0.0f, 0.0f, 1.0f}; + GLfloat sun_light_ambient[] = {1.0f, 1.0f, 1.0f, 1.0f}; + GLfloat sun_light_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; + GLfloat sun_light_specular[] = {1.0f, 1.0f, 1.0f, 1.0f}; + glLightfv(GL_LIGHT0, GL_POSITION, sun_light_position); + glLightfv(GL_LIGHT0, GL_AMBIENT, sun_light_ambient); + glLightfv(GL_LIGHT0, GL_DIFFUSE, sun_light_diffuse); + glLightfv(GL_LIGHT0, GL_SPECULAR, sun_light_specular); + glEnable(GL_LIGHT0); + glEnable(GL_LIGHTING); + glEnable(GL_DEPTH_TEST); + + // ¶¨ÒåÌ«ÑôµÄ²ÄÖÊ + GLfloat sun_mat_ambient[] = {0.0f, 0.0f, 0.0f, 1.0f}; + GLfloat sun_mat_diffuse[] = {0.0f, 0.0f, 0.0f, 1.0f}; + GLfloat sun_mat_specular[] = {0.0f, 0.0f, 0.0f, 1.0f}; + GLfloat sun_mat_emission[] = {0.3f, 0.0f, 0.0f, 1.0f}; + GLfloat sun_mat_shininess = 0.0f; + glMaterialfv(GL_FRONT, GL_AMBIENT, sun_mat_ambient); + glMaterialfv(GL_FRONT, GL_DIFFUSE, sun_mat_diffuse); + glMaterialfv(GL_FRONT, GL_SPECULAR, sun_mat_specular); + glMaterialfv(GL_FRONT, GL_EMISSION, sun_mat_emission); + glMaterialf (GL_FRONT, GL_SHININESS, sun_mat_shininess); + + //»æÖÆÌ«Ñô + glPushMatrix(); + glBindTexture(GL_TEXTURE_2D, sunTexture); + glRotatef(sunRevolute/30.0*360.0, 0.0f, 0.0f, -1.0f); //Ì«Ñô×Ôת£¬ÖÜÆÚ30Ìì + gluSphere(sunQuadObj, 4.0, 20, 20); + glPopMatrix(); + + //¶¨Ò嵨Çò²ÄÖÊ + GLfloat earth_mat_ambient[] = {0.0f, 0.0f, 0.5f, 1.0f}; + GLfloat earth_mat_diffuse[] = {0.0f, 0.0f, 0.5f, 1.0f}; + GLfloat earth_mat_specular[] = {0.0f, 0.0f, 1.0f, 1.0f}; + GLfloat earth_mat_emission[] = {0.0f, 0.0f, 0.0f, 1.0f}; + GLfloat earth_mat_shininess = 30.0f; + glMaterialfv(GL_FRONT, GL_AMBIENT, earth_mat_ambient); + glMaterialfv(GL_FRONT, GL_DIFFUSE, earth_mat_diffuse); + glMaterialfv(GL_FRONT, GL_SPECULAR, earth_mat_specular); + glMaterialfv(GL_FRONT, GL_EMISSION, earth_mat_emission); + glMaterialf (GL_FRONT, GL_SHININESS, earth_mat_shininess); + + glPushMatrix(); + glBindTexture(GL_TEXTURE_2D, earthTexture); + glRotatef(earthRotate/360.0*360.0,0.0f,0.0f,-1.0f); //µØÇò¹«×ª£¬ÖÜÆÚ360Ìì + glTranslatef(14.0f,0.0f,0.0f); + glRotatef(earthRevolute/1.0f*360.0, 0.0f, 0.0f, -1.0f); //µØÇò×Ôת£¬ÖÜÆÚ1Ìì + gluSphere(earthQuadObj, 2.0, 15, 15); + + //¶¨ÒåÔÂÇò²ÄÖÊ + GLfloat moon_mat_ambient[] = {0.5f, 0.5f, 0.0f, 1.0f}; + GLfloat moon_mat_diffuse[] = {0.5f, 0.5f, 0.0f, 1.0f}; + GLfloat moon_mat_specular[] = {1.0f, 1.0f, 0.0f, 1.0f}; + GLfloat moon_mat_emission[] = {0.0f, 0.0f, 0.0f, 1.0f}; + GLfloat moon_mat_shininess = 50.0f; + glMaterialfv(GL_FRONT, GL_AMBIENT, moon_mat_ambient); + glMaterialfv(GL_FRONT, GL_DIFFUSE, moon_mat_diffuse); + glMaterialfv(GL_FRONT, GL_SPECULAR, moon_mat_specular); + glMaterialfv(GL_FRONT, GL_EMISSION, moon_mat_emission); + glMaterialf (GL_FRONT, GL_SHININESS, moon_mat_shininess); + + glPushMatrix(); + glBindTexture(GL_TEXTURE_2D, moonTexture); + glRotatef(moonRotate/27.0*360.0-earthRotate/360.0*360.0+earthRevolute/1.0f*360.0, 0.0f, 0.0f, 1.0f); //ÔÂÇò¹«×ª£¬ÖÜÆÚ27Ìì + glTranslatef(5.0f,0.0f,0.0f); + glRotatef(moonRevolute/27.0f*360.0, 0.0f, 0.0f, 1.0f); //ÔÂÇò×Ô´«£¬ÖÜÆÚ27Ìì + gluSphere(moonQuadObj, 1.0, 10, 10); + glPopMatrix(); + glPopMatrix(); + glFlush(); + glutSwapBuffers(); +} + +void myReshape(int w, int h) +{ + glViewport(0, 0, w, h); + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + if (w <= h) + glOrtho(-2.0, 2.0, -2.0 * (GLfloat) h / (GLfloat) w, + 2.0 * (GLfloat) h / (GLfloat) w, -10.0, 10.0); + else + glOrtho(-2.0 * (GLfloat) w / (GLfloat) h, + 2.0 * (GLfloat) w / (GLfloat) h, -2.0, 2.0, -10.0, 10.0); + glMatrixMode(GL_MODELVIEW); +} + +void rotateObj(GLfloat *rot, GLfloat angle) +{ + *rot+=0.01f; + if (*rot>=angle) + { + *rot -= angle; + } +} + +void renderScene(void) +{ + rotateObj(&sunRevolute, 30.0f); + rotateObj(&earthRevolute, 1.0f); + rotateObj(&earthRotate, 360.0f); + rotateObj(&moonRevolute, 27.0f); + rotateObj(&moonRotate, 27.0f); + myDisplay(); +} + +void init() +{ + sunQuadObj = gluNewQuadric(); + gluQuadricNormals(sunQuadObj, GLU_SMOOTH); + gluQuadricTexture(sunQuadObj, GL_TRUE); + + moonQuadObj = gluNewQuadric(); + gluQuadricNormals(moonQuadObj, GLU_SMOOTH); + gluQuadricTexture(moonQuadObj, GLU_TRUE); + + earthQuadObj = gluNewQuadric(); + gluQuadricNormals(earthQuadObj, GLU_SMOOTH); + gluQuadricTexture(earthQuadObj, GLU_TRUE); + + glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); + glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); + + sunSurface = SDL_LoadBMP("Sun.bmp"); + glGenTextures(1,&sunTexture); + glBindTexture(GL_TEXTURE_2D, sunTexture); + glTexImage2D(GL_TEXTURE_2D, 0, 3, sunSurface->w, sunSurface->h, 0, GL_BGR_EXT, GL_UNSIGNED_BYTE, sunSurface->pixels); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + + earthSurface = SDL_LoadBMP("Earth.bmp"); + printf("------------%p\n",earthSurface); + glGenTextures(1,&earthTexture); + glBindTexture(GL_TEXTURE_2D, earthTexture); + glTexImage2D(GL_TEXTURE_2D, 0, 3, earthSurface->w, earthSurface->h, 0, GL_BGR_EXT, GL_UNSIGNED_BYTE, earthSurface->pixels); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + + moonSurface = SDL_LoadBMP("Moon.bmp"); + glGenTextures(1,&moonTexture); + glBindTexture(GL_TEXTURE_2D, moonTexture); + glTexImage2D(GL_TEXTURE_2D, 0, 3, moonSurface->w, moonSurface->h, 0, GL_BGR_EXT, GL_UNSIGNED_BYTE, moonSurface->pixels); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + + glEnable(GL_TEXTURE_2D); +} + +int main(int argc, char** argv) +{ + glutInit(&argc, argv); + glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); + glutInitWindowPosition(500,100); + glutInitWindowSize(500, 500); + glutCreateWindow("homework2"); + init(); + glutReshapeFunc(myReshape); + glutDisplayFunc(myDisplay); + glutIdleFunc(renderScene); + glutMainLoop(); + ShutdownRC(); + return 0; +} \ No newline at end of file diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.vcproj" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.vcproj" new file mode 100644 index 0000000..f313a0a --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.vcproj" @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.vcproj.dell-PC.dell.user" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.vcproj.dell-PC.dell.user" new file mode 100644 index 0000000..4d428fb --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/opengl_homework2.vcproj.dell-PC.dell.user" @@ -0,0 +1,65 @@ + + + + + + + + + + + diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/stdafx.cpp" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/stdafx.cpp" new file mode 100644 index 0000000..5b57f64 --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/stdafx.cpp" @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// opengl_homework2.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/stdafx.h" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/stdafx.h" new file mode 100644 index 0000000..b005a83 --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/stdafx.h" @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git "a/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/targetver.h" "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/targetver.h" new file mode 100644 index 0000000..6fe8eb7 --- /dev/null +++ "b/21551072\345\276\220\345\205\213/opengl_homework2/opengl_homework2/targetver.h" @@ -0,0 +1,13 @@ +#pragma once + +// The following macros define the minimum required platform. The minimum required platform +// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run +// your application. The macros work by enabling all features available on platform versions up to and +// including the version specified. + +// Modify the following defines if you have to target a platform prior to the ones specified below. +// Refer to MSDN for the latest info on corresponding values for different platforms. +#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. +#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. +#endif + diff --git "a/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/Activity-centric Scene Synthesis for Functional 3D Scene Modeling.pdf" "b/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/Activity-centric Scene Synthesis for Functional 3D Scene Modeling.pdf" new file mode 100755 index 0000000..8b61965 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/Activity-centric Scene Synthesis for Functional 3D Scene Modeling.pdf" differ diff --git "a/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/\345\237\272\344\272\216\344\273\245\346\264\273\345\212\250\344\270\272\344\270\255\345\277\203\347\232\204\345\212\237\350\203\275\346\200\247\344\270\211\347\273\264\345\234\272\346\231\257\345\273\272\346\250\241.key" "b/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/\345\237\272\344\272\216\344\273\245\346\264\273\345\212\250\344\270\272\344\270\255\345\277\203\347\232\204\345\212\237\350\203\275\346\200\247\344\270\211\347\273\264\345\234\272\346\231\257\345\273\272\346\250\241.key" new file mode 100644 index 0000000..e3174d1 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/\345\237\272\344\272\216\344\273\245\346\264\273\345\212\250\344\270\272\344\270\255\345\277\203\347\232\204\345\212\237\350\203\275\346\200\247\344\270\211\347\273\264\345\234\272\346\231\257\345\273\272\346\250\241.key" differ diff --git "a/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/\345\237\272\344\272\216\344\273\245\346\264\273\345\212\250\344\270\272\344\270\255\345\277\203\347\232\204\345\212\237\350\203\275\346\200\247\344\270\211\347\273\264\345\234\272\346\231\257\345\273\272\346\250\241.pages" "b/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/\345\237\272\344\272\216\344\273\245\346\264\273\345\212\250\344\270\272\344\270\255\345\277\203\347\232\204\345\212\237\350\203\275\346\200\247\344\270\211\347\273\264\345\234\272\346\231\257\345\273\272\346\250\241.pages" new file mode 100644 index 0000000..fd8a2b7 Binary files /dev/null and "b/21551072\345\276\220\345\205\213/\347\254\254\344\270\200\346\254\241\350\257\273\344\271\246\346\212\245\345\221\212\344\277\256\346\255\243\347\211\210/\345\237\272\344\272\216\344\273\245\346\264\273\345\212\250\344\270\272\344\270\255\345\277\203\347\232\204\345\212\237\350\203\275\346\200\247\344\270\211\347\273\264\345\234\272\346\231\257\345\273\272\346\250\241.pages" differ