Skip to content

Commit e10110c

Browse files
committed
+ include dirs, pre processor definitions, lib dirs for 32 bit systems, update wiki
1 parent 52812a6 commit e10110c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

BasicOOP/BasicOOP/BasicOOP.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,13 @@
9191
<Optimization>Disabled</Optimization>
9292
<SDLCheck>true</SDLCheck>
9393
<ConformanceMode>true</ConformanceMode>
94+
<AdditionalIncludeDirectories>$(SolutionDir)BasicOOP\Vendor;$(SolutionDir)Dependencies\GLFW\include;$(SolutionDir)Dependencies\glew-2.1.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
95+
<PreprocessorDefinitions>GLEW_STATIC;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
9496
</ClCompile>
9597
<Link>
9698
<SubSystem>Console</SubSystem>
99+
<AdditionalDependencies>User32.lib;Gdi32.lib;Shell32.lib;opengl32.lib;glew32s.lib;glfw3.lib;</AdditionalDependencies>
100+
<AdditionalLibraryDirectories>$(SolutionDir)Dependencies\glew-2.1.0\lib\Release\x64;$(SolutionDir)Dependencies\GLFW\lib-vc2019</AdditionalLibraryDirectories>
97101
</Link>
98102
</ItemDefinitionGroup>
99103
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">

wiki/BasicOOP.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,14 @@ Graphics
114114
* Vector: directional or positional (where does ball go, where does camera go?).
115115
116116
## Visual Studio 2019 Properities
117+
Solution should target 32 bit `x86` since opengl libs are `0x20` bit compatible.
117118
C/C++
118-
* General: Add GLFW and glew include locatuions using `$(SolutionDir)`.
119+
* General: Add GLFW and glew include locations using `$(SolutionDir)`.
119120
* Preprocessor: First Preprocessor Definition as `GLEW_STATIC;`.
120121
121122
Linker
122123
* General: Add GLFW and glew static libs locations using `$(SolutionDir)`.
123-
* Input: List the libs you need, example `glfw3.lib;User32.lib;Gdi32.lib;Shell32.lib;opengl32.lib;glew32s.lib`.
124+
* Input: List the libs you need, example `User32.lib;Gdi32.lib;Shell32.lib;opengl32.lib;glew32s.lib;glfw3.lib;`.
124125
125126
## Misc. Concepts
126127
* Quads are squares.

0 commit comments

Comments
 (0)