Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long_hw_01 #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .vs/CMake Overview
Empty file.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": "x64-Debug"
}
14 changes: 14 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"OutputFoldersPerTargetSystem": {
"\u672C\u5730\u8BA1\u7B97\u673A": [
"out\\build\\x64-Debug",
"out\\install\\x64-Debug"
]
},
"ExpandedNodes": [
"",
"\\stbiw"
],
"SelectedNode": "\\stbiw\\CMakeLists.txt",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/cmake.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/hw01/v17/.wsuo
Binary file not shown.
Binary file added .vs/hw01/v17/Browse.VC.db
Binary file not shown.
211 changes: 211 additions & 0 deletions .vs/hw01/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\Github_clone\\hw01\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\stbiw\\CMakeLists.txt||{8B382828-6202-11D1-8870-0000F87579D2}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:stbiw\\CMakeLists.txt||{8B382828-6202-11D1-8870-0000F87579D2}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\stbiw\\stb_image_write.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:stbiw\\stb_image_write.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\mandel.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:mandel.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\main.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:main.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\CMakeLists.txt||{8B382828-6202-11D1-8870-0000F87579D2}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:CMakeLists.txt||{8B382828-6202-11D1-8870-0000F87579D2}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\stbiw\\stb_image_write.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:stbiw\\stb_image_write.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\rainbow.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:rainbow.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\rainbow.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:rainbow.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\mandel.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:mandel.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:README.md||{EFC0BB08-EA7D-40C6-A696-C870411A895B}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\Github_clone\\hw01\\.gitignore||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:.gitignore||{3B902123-F8A7-4915-9F01-361F908088D0}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 8,
"Children": [
{
"$type": "Document",
"DocumentIndex": 9,
"Title": "README.md",
"DocumentMoniker": "D:\\Github_clone\\hw01\\README.md",
"RelativeDocumentMoniker": "README.md",
"ToolTip": "D:\\Github_clone\\hw01\\README.md",
"RelativeToolTip": "README.md",
"ViewState": "AQIAAAwAAAAAAAAAAAAAABsAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001818|",
"WhenOpened": "2024-08-12T03:06:06.001Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "CMakeLists.txt",
"DocumentMoniker": "D:\\Github_clone\\hw01\\CMakeLists.txt",
"RelativeDocumentMoniker": "CMakeLists.txt",
"ToolTip": "D:\\Github_clone\\hw01\\CMakeLists.txt",
"RelativeToolTip": "CMakeLists.txt",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAYAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003109|",
"WhenOpened": "2024-08-12T02:51:29.081Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "stb_image_write.cpp",
"DocumentMoniker": "D:\\Github_clone\\hw01\\stbiw\\stb_image_write.cpp",
"RelativeDocumentMoniker": "stbiw\\stb_image_write.cpp",
"ToolTip": "D:\\Github_clone\\hw01\\stbiw\\stb_image_write.cpp",
"RelativeToolTip": "stbiw\\stb_image_write.cpp",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAEAAAA0AAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2024-08-12T02:48:17.209Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "stb_image_write.h",
"DocumentMoniker": "D:\\Github_clone\\hw01\\stbiw\\stb_image_write.h",
"RelativeDocumentMoniker": "stbiw\\stb_image_write.h",
"ToolTip": "D:\\Github_clone\\hw01\\stbiw\\stb_image_write.h",
"RelativeToolTip": "stbiw\\stb_image_write.h",
"ViewState": "AQIAAIgAAAAAAAAAAAAuwJcAAAAVAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
"WhenOpened": "2024-08-12T02:20:48.519Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 7,
"Title": "rainbow.h",
"DocumentMoniker": "D:\\Github_clone\\hw01\\rainbow.h",
"RelativeDocumentMoniker": "rainbow.h",
"ToolTip": "D:\\Github_clone\\hw01\\rainbow.h",
"RelativeToolTip": "rainbow.h",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
"WhenOpened": "2024-08-12T02:20:37.731Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 6,
"Title": "rainbow.cpp",
"DocumentMoniker": "D:\\Github_clone\\hw01\\rainbow.cpp",
"RelativeDocumentMoniker": "rainbow.cpp",
"ToolTip": "D:\\Github_clone\\hw01\\rainbow.cpp",
"RelativeToolTip": "rainbow.cpp",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAUAAAAhAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2024-08-12T02:20:34.44Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 8,
"Title": "mandel.h",
"DocumentMoniker": "D:\\Github_clone\\hw01\\mandel.h",
"RelativeDocumentMoniker": "mandel.h",
"ToolTip": "D:\\Github_clone\\hw01\\mandel.h",
"RelativeToolTip": "mandel.h",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
"WhenOpened": "2024-08-12T02:20:30.727Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "main.cpp",
"DocumentMoniker": "D:\\Github_clone\\hw01\\main.cpp",
"RelativeDocumentMoniker": "main.cpp",
"ToolTip": "D:\\Github_clone\\hw01\\main.cpp",
"RelativeToolTip": "main.cpp",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAYAAAANAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2024-08-12T02:20:20.979Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "CMakeLists.txt",
"DocumentMoniker": "D:\\Github_clone\\hw01\\stbiw\\CMakeLists.txt",
"RelativeDocumentMoniker": "stbiw\\CMakeLists.txt",
"ToolTip": "D:\\Github_clone\\hw01\\stbiw\\CMakeLists.txt",
"RelativeToolTip": "stbiw\\CMakeLists.txt",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAYAAAAxAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003109|",
"WhenOpened": "2024-08-12T02:47:45.276Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "mandel.cpp",
"DocumentMoniker": "D:\\Github_clone\\hw01\\mandel.cpp",
"RelativeDocumentMoniker": "mandel.cpp",
"ToolTip": "D:\\Github_clone\\hw01\\mandel.cpp",
"RelativeToolTip": "mandel.cpp",
"ViewState": "AQIAAA8AAAAAAAAAAAAAAAQAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2024-08-12T02:19:52.745Z",
"EditorCaption": ""
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
},
{
"$type": "Document",
"DocumentIndex": 10,
"Title": ".gitignore",
"DocumentMoniker": "D:\\Github_clone\\hw01\\.gitignore",
"RelativeDocumentMoniker": ".gitignore",
"ToolTip": "D:\\Github_clone\\hw01\\.gitignore",
"RelativeToolTip": ".gitignore",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2024-08-12T03:05:50.463Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
8 changes: 7 additions & 1 deletion stbiw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
message(FATAL_ERROR "请修改 stbiw/CMakeLists.txt!要求生成一个名为 stbiw 的库")
#message(FATAL_ERROR "请修改 stbiw/CMakeLists.txt!要求生成一个名为 stbiw 的库")

add_library(stbiw STATIC stb_image_write.cpp)
#放入目录,这里头文件不必再引入,已经在cpp中链接

target_include_directories(stbiw PUBLIC .)
#这里private就不可以咯,感觉我对public,private理解不深,小彭老师可以介绍下吗
3 changes: 3 additions & 0 deletions stbiw/stb_image_write.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define STB_IMAGE_WRITE_IMPLEMENTATION
//����ĺ궨�������include֮ǰ�����򽫻ᱨ����ϣ����ʦ�ܽ���£���Ϊcmake��ѧ���е㲻����
#include <stb_image_write.h>
2 changes: 2 additions & 0 deletions stbiw/stb_image_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ LICENSE

*/

#pragma once
//���Ӵ˾�������ÿ��ִ�ж����룬�˷�����
#ifndef INCLUDE_STB_IMAGE_WRITE_H
#define INCLUDE_STB_IMAGE_WRITE_H

Expand Down