Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
尘离序散
obs-studio
提交
7e89ebce
O
obs-studio
项目概览
尘离序散
/
obs-studio
与 Fork 源项目一致
从无法访问的项目Fork
通知
30
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obs-studio
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7e89ebce
编写于
11月 22, 2013
作者:
J
jp9000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add a 'wrapper' file for wx
上级
27be0a51
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
70 addition
and
6 deletion
+70
-6
obs/CMakeLists.txt
obs/CMakeLists.txt
+1
-0
obs/makefile.am
obs/makefile.am
+1
-0
obs/obs-app.cpp
obs/obs-app.cpp
+2
-6
obs/obs-wrappers.hpp
obs/obs-wrappers.hpp
+2
-0
obs/wx-wrappers.cpp
obs/wx-wrappers.cpp
+33
-0
obs/wx-wrappers.hpp
obs/wx-wrappers.hpp
+23
-0
vs/2010/OBS/OBS.vcxproj
vs/2010/OBS/OBS.vcxproj
+2
-0
vs/2010/OBS/OBS.vcxproj.filters
vs/2010/OBS/OBS.vcxproj.filters
+6
-0
未找到文件。
obs/CMakeLists.txt
浏览文件 @
7e89ebce
...
...
@@ -30,6 +30,7 @@ link_libraries(${wxWidgets_LIBRARIES})
add_executable
(
obs
window-obs-basic.cpp
window-subclass.cpp
wx-wrappers.cpp
obs-app.cpp
OBSWindows.cpp
)
...
...
obs/makefile.am
浏览文件 @
7e89ebce
...
...
@@ -13,4 +13,5 @@ obs_PROGRAMS = obs
obs_SOURCES
=
window-obs-basic.cpp
\
window-subclass.cpp
\
obs-app.cpp
\
wx-wrappers.cpp
\
OBSWindows.cpp
obs/obs-app.cpp
浏览文件 @
7e89ebce
...
...
@@ -19,6 +19,7 @@
#include "obs-app.hpp"
#include "window-obs-basic.hpp"
#include "obs-wrappers.hpp"
#include "wx-wrappers.hpp"
IMPLEMENT_APP
(
OBSApp
)
...
...
@@ -47,12 +48,7 @@ bool OBSApp::OnInit()
ovi
.
output_format
=
VIDEO_FORMAT_RGBA
;
ovi
.
output_width
=
rc
.
width
;
ovi
.
output_height
=
rc
.
height
;
#ifdef __WXCOCOA__
ovi
.
window
.
view
=
preview
->
GetHandle
();
#elif _WIN32
ovi
.
window
.
hwnd
=
preview
->
GetHandle
();
#endif
ovi
.
window
=
WxToGSWindow
(
preview
);
if
(
!
obs_reset_video
(
&
ovi
))
return
false
;
...
...
obs/obs-wrappers.hpp
浏览文件 @
7e89ebce
...
...
@@ -17,6 +17,8 @@
#pragma once
#include <obs.h>
class
OBSSource
{
obs_source_t
source
;
...
...
obs/wx-wrappers.cpp
0 → 100644
浏览文件 @
7e89ebce
/******************************************************************************
Copyright (C) 2013 by Hugh Bailey <obs.jim@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#include <wx/window.h>
#include <obs.h>
#include "wx-wrappers.hpp"
gs_window
WxToGSWindow
(
const
wxWindow
*
wxwin
)
{
gs_window
window
;
#ifdef __WXCOCOA__
window
.
view
=
wxwin
->
GetHandle
();
#elif _WIN32
window
.
hwnd
=
wxwin
->
GetHandle
();
#else
/* TODO: linux stuff */
#endif
return
window
;
}
obs/wx-wrappers.hpp
0 → 100644
浏览文件 @
7e89ebce
/******************************************************************************
Copyright (C) 2013 by Hugh Bailey <obs.jim@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#pragma once
struct
gs_window
;
class
wxWindow
;
gs_window
WxToGSWindow
(
const
wxWindow
*
window
);
vs/2010/OBS/OBS.vcxproj
浏览文件 @
7e89ebce
...
...
@@ -171,6 +171,7 @@
<ClCompile
Include=
"..\..\..\obs\OBSWindows.cpp"
/>
<ClCompile
Include=
"..\..\..\obs\window-obs-basic.cpp"
/>
<ClCompile
Include=
"..\..\..\obs\window-subclass.cpp"
/>
<ClCompile
Include=
"..\..\..\obs\wx-wrappers.cpp"
/>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"..\..\..\obs\obs-app.hpp"
/>
...
...
@@ -178,6 +179,7 @@
<ClInclude
Include=
"..\..\..\obs\OBSWindows.h"
/>
<ClInclude
Include=
"..\..\..\obs\window-obs-basic.hpp"
/>
<ClInclude
Include=
"..\..\..\obs\window-subclass.hpp"
/>
<ClInclude
Include=
"..\..\..\obs\wx-wrappers.hpp"
/>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
...
...
vs/2010/OBS/OBS.vcxproj.filters
浏览文件 @
7e89ebce
...
...
@@ -27,6 +27,9 @@
<ClCompile
Include=
"..\..\..\obs\obs-app.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
<ClCompile
Include=
"..\..\..\obs\wx-wrappers.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"..\..\..\obs\OBSWindows.h"
>
...
...
@@ -44,5 +47,8 @@
<ClInclude
Include=
"..\..\..\obs\obs-wrappers.hpp"
>
<Filter>
Header Files
</Filter>
</ClInclude>
<ClInclude
Include=
"..\..\..\obs\wx-wrappers.hpp"
>
<Filter>
Header Files
</Filter>
</ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录