Skip to content

Commit

Permalink
Refactored editbox functionality out into a separate file
Browse files Browse the repository at this point in the history
This allows it to be easier to understand and reuse in other projects.
  • Loading branch information
slouken committed Oct 4, 2024
1 parent 8e57960 commit ff7ca1f
Show file tree
Hide file tree
Showing 5 changed files with 769 additions and 515 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ endif()

if(SDLTTF_SAMPLES)
add_executable(glfont examples/glfont.c)
add_executable(showfont examples/showfont.c)
add_executable(showfont examples/showfont.c examples/editbox.c)
add_executable(testapp examples/testapp.c)

set(OpenGL_GL_PREFERENCE GLVND)
Expand Down
10 changes: 3 additions & 7 deletions VisualC/showfont/showfont.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,10 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\examples\showfont.c">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ClCompile Include="..\..\examples\editbox.c"/>
<ClCompile Include="..\..\examples\showfont.c"/>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
Loading

0 comments on commit ff7ca1f

Please sign in to comment.