实例介绍
将sdl嵌入wpf中的代码实现,基于HostWhnd实现。
【实例截图】
【核心代码】
16359647626846750349.rar
└── CameraView
├── CameraView
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── CameraView.csproj
│ ├── CameraView.csproj.user
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── NativeHost.cs
│ ├── NativeMethods.cs
│ ├── Player.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── Win32ListBoxHost.cs
├── CameraView.sln
├── CameraView.v12.suo
├── Player
│ ├── Player.cpp
│ ├── Player.vcxproj
│ ├── Player.vcxproj.filters
│ └── Player.vcxproj.user
└── SDL-1.2.15
├── BUGS.txt
├── COPYING.txt
├── docs
│ ├── html
│ │ ├── audio.html
│ │ ├── cdrom.html
│ │ ├── eventfunctions.html
│ │ ├── event.html
│ │ ├── eventstructures.html
│ │ ├── general.html
│ │ ├── guideaboutsdldoc.html
│ │ ├── guideaudioexamples.html
│ │ ├── guidebasicsinit.html
│ │ ├── guidecdromexamples.html
│ │ ├── guidecredits.html
│ │ ├── guideeventexamples.html
│ │ ├── guideexamples.html
│ │ ├── guide.html
│ │ ├── guideinput.html
│ │ ├── guideinputkeyboard.html
│ │ ├── guidepreface.html
│ │ ├── guidethebasics.html
│ │ ├── guidetimeexamples.html
│ │ ├── guidevideo.html
│ │ ├── guidevideoopengl.html
│ │ ├── index.html
│ │ ├── joystick.html
│ │ ├── reference.html
│ │ ├── sdlactiveevent.html
│ │ ├── sdladdtimer.html
│ │ ├── sdlaudiocvt.html
│ │ ├── sdlaudiospec.html
│ │ ├── sdlblitsurface.html
│ │ ├── sdlbuildaudiocvt.html
│ │ ├── sdlcdclose.html
│ │ ├── sdlcdeject.html
│ │ ├── sdlcd.html
│ │ ├── sdlcdname.html
│ │ ├── sdlcdnumdrives.html
│ │ ├── sdlcdopen.html
│ │ ├── sdlcdpause.html
│ │ ├── sdlcdplay.html
│ │ ├── sdlcdplaytracks.html
│ │ ├── sdlcdresume.html
│ │ ├── sdlcdstatus.html
│ │ ├── sdlcdstop.html
│ │ ├── sdlcdtrack.html
│ │ ├── sdlcloseaudio.html
│ │ ├── sdlcolor.html
│ │ ├── sdlcondbroadcast.html
│ │ ├── sdlcondsignal.html
│ │ ├── sdlcondwait.html
│ │ ├── sdlcondwaittimeout.html
│ │ ├── sdlconvertaudio.html
│ │ ├── sdlconvertsurface.html
│ │ ├── sdlcreatecond.html
│ │ ├── sdlcreatecursor.html
│ │ ├── sdlcreatemutex.html
│ │ ├── sdlcreatergbsurfacefrom.html
│ │ ├── sdlcreatergbsurface.html
│ │ ├── sdlcreatesemaphore.html
│ │ ├── sdlcreatethread.html
│ │ ├── sdlcreateyuvoverlay.html
│ │ ├── sdldelay.html
│ │ ├── sdldestroycond.html
│ │ ├── sdldestroymutex.html
│ │ ├── sdldestroysemaphore.html
│ │ ├── sdldisplayformatalpha.html
│ │ ├── sdldisplayformat.html
│ │ ├── sdldisplayyuvoverlay.html
│ │ ├── sdlenablekeyrepeat.html
│ │ ├── sdlenableunicode.html
│ │ ├── sdlenvvars.html
│ │ ├── sdlevent.html
│ │ ├── sdleventstate.html
│ │ ├── sdlexposeevent.html
│ │ ├── sdlfillrect.html
│ │ ├── sdlflip.html
│ │ ├── sdlfreecursor.html
│ │ ├── sdlfreesurface.html
│ │ ├── sdlfreewav.html
│ │ ├── sdlfreeyuvoverlay.html
│ │ ├── sdlgetappstate.html
│ │ ├── sdlgetaudiostatus.html
│ │ ├── sdlgetcliprect.html
│ │ ├── sdlgetcursor.html
│ │ ├── sdlgeterror.html
│ │ ├── sdlgeteventfilter.html
│ │ ├── sdlgetgammaramp.html
│ │ ├── sdlgetkeyname.html
│ │ ├── sdlgetkeystate.html
│ │ ├── sdlgetmodstate.html
│ │ ├── sdlgetmousestate.html
│ │ ├── sdlgetrelativemousestate.html
│ │ ├── sdlgetrgba.html
│ │ ├── sdlgetrgb.html
│ │ ├── sdlgetthreadid.html
│ │ ├── sdlgetticks.html
│ │ ├── sdlgetvideoinfo.html
│ │ ├── sdlgetvideosurface.html
│ │ ├── sdlglattr.html
│ │ ├── sdlglgetattribute.html
│ │ ├── sdlglgetprocaddress.html
│ │ ├── sdlglloadlibrary.html
│ │ ├── sdlglsetattribute.html
│ │ ├── sdlglswapbuffers.html
│ │ ├── sdlinit.html
│ │ ├── sdlinitsubsystem.html
│ │ ├── sdljoyaxisevent.html
│ │ ├── sdljoyballevent.html
│ │ ├── sdljoybuttonevent.html
│ │ ├── sdljoyhatevent.html
│ │ ├── sdljoystickclose.html
│ │ ├── sdljoystickeventstate.html
│ │ ├── sdljoystickgetaxis.html
│ │ ├── sdljoystickgetball.html
│ │ ├── sdljoystickgetbutton.html
│ │ ├── sdljoystickgethat.html
│ │ ├── sdljoystickindex.html
│ │ ├── sdljoystickname.html
│ │ ├── sdljoysticknumaxes.html
│ │ ├── sdljoysticknumballs.html
│ │ ├── sdljoysticknumbuttons.html
│ │ ├── sdljoysticknumhats.html
│ │ ├── sdljoystickopened.html
│ │ ├── sdljoystickopen.html
│ │ ├── sdljoystickupdate.html
│ │ ├── sdlkeyboardevent.html
│ │ ├── sdlkey.html
│ │ ├── sdlkeysym.html
│ │ ├── sdlkillthread.html
│ │ ├── sdllistmodes.html
│ │ ├── sdlloadbmp.html
│ │ ├── sdlloadwav.html
│ │ ├── sdllockaudio.html
│ │ ├── sdllocksurface.html
│ │ ├── sdllockyuvoverlay.html
│ │ ├── sdlmaprgba.html
│ │ ├── sdlmaprgb.html
│ │ ├── sdlmixaudio.html
│ │ ├── sdlmousebuttonevent.html
│ │ ├── sdlmousemotionevent.html
│ │ ├── sdlmutexp.html
│ │ ├── sdlmutexv.html
│ │ ├── sdlnumjoysticks.html
│ │ ├── sdlopenaudio.html
│ │ ├── sdloverlay.html
│ │ ├── sdlpalette.html
│ │ ├── sdlpauseaudio.html
│ │ ├── sdlpeepevents.html
│ │ ├── sdlpixelformat.html
│ │ ├── sdlpollevent.html
│ │ ├── sdlpumpevents.html
│ │ ├── sdlpushevent.html
│ │ ├── sdlquitevent.html
│ │ ├── sdlquit.html
│ │ ├── sdlquitsubsystem.html
│ │ ├── sdlrect.html
│ │ ├── sdlremovetimer.html
│ │ ├── sdlresizeevent.html
│ │ ├── sdlsavebmp.html
│ │ ├── sdlsempost.html
│ │ ├── sdlsemtrywait.html
│ │ ├── sdlsemvalue.html
│ │ ├── sdlsemwait.html
│ │ ├── sdlsemwaittimeout.html
│ │ ├── sdlsetalpha.html
│ │ ├── sdlsetcliprect.html
│ │ ├── sdlsetcolorkey.html
│ │ ├── sdlsetcolors.html
│ │ ├── sdlsetcursor.html
│ │ ├── sdlseteventfilter.html
│ │ ├── sdlsetgamma.html
│ │ ├── sdlsetgammaramp.html
│ │ ├── sdlsetmodstate.html
│ │ ├── sdlsetpalette.html
│ │ ├── sdlsettimer.html
│ │ ├── sdlsetvideomode.html
│ │ ├── sdlshowcursor.html
│ │ ├── sdlsurface.html
│ │ ├── sdlsyswmevent.html
│ │ ├── sdlthreadid.html
│ │ ├── sdlunlockaudio.html
│ │ ├── sdlunlocksurface.html
│ │ ├── sdlunlockyuvoverlay.html
│ │ ├── sdlupdaterect.html
│ │ ├── sdlupdaterects.html
│ │ ├── sdluserevent.html
│ │ ├── sdlvideodrivername.html
│ │ ├── sdlvideoinfo.html
│ │ ├── sdlvideomodeok.html
│ │ ├── sdlwaitevent.html
│ │ ├── sdlwaitthread.html
│ │ ├── sdlwarpmouse.html
│ │ ├── sdlwasinit.html
│ │ ├── sdlwmgetcaption.html
│ │ ├── sdlwmgrabinput.html
│ │ ├── sdlwmiconifywindow.html
│ │ ├── sdlwmsetcaption.html
│ │ ├── sdlwmseticon.html
│ │ ├── sdlwmtogglefullscreen.html
│ │ ├── thread.html
│ │ ├── time.html
│ │ ├── video.html
│ │ └── wm.html
│ ├── images
│ │ └── rainbow.gif
│ └── index.html
├── docs.html
├── include
│ ├── begin_code.h
│ ├── close_code.h
│ ├── SDL_active.h
│ ├── SDL_audio.h
│ ├── SDL_byteorder.h
│ ├── SDL_cdrom.h
│ ├── SDL_config_dreamcast.h
│ ├── SDL_config.h
│ ├── SDL_config_macos.h
│ ├── SDL_config_macosx.h
│ ├── SDL_config_minimal.h
│ ├── SDL_config_nds.h
│ ├── SDL_config_os2.h
│ ├── SDL_config_symbian.h
│ ├── SDL_config_win32.h
│ ├── SDL_copying.h
│ ├── SDL_cpuinfo.h
│ ├── SDL_endian.h
│ ├── SDL_error.h
│ ├── SDL_events.h
│ ├── SDL_getenv.h
│ ├── SDL.h
│ ├── SDL_joystick.h
│ ├── SDL_keyboard.h
│ ├── SDL_keysym.h
│ ├── SDL_loadso.h
│ ├── SDL_main.h
│ ├── SDL_mouse.h
│ ├── SDL_mutex.h
│ ├── SDL_name.h
│ ├── SDL_opengl.h
│ ├── SDL_platform.h
│ ├── SDL_quit.h
│ ├── SDL_rwops.h
│ ├── SDL_stdinc.h
│ ├── SDL_syswm.h
│ ├── SDL_thread.h
│ ├── SDL_timer.h
│ ├── SDL_types.h
│ ├── SDL_version.h
│ └── SDL_video.h
├── lib
│ ├── x64
│ │ ├── SDL.dll
│ │ ├── SDL.lib
│ │ └── SDLmain.lib
│ └── x86
│ ├── SDL.dll
│ ├── SDL.lib
│ └── SDLmain.lib
├── README-SDL.txt
├── README.txt
├── VisualC.html
└── WhatsNew.txt
12 directories, 279 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论