Tutorial_of_SDL_for_game_designer.rar

  • jingyu7
    了解作者
  • C/C++
    开发工具
  • 570KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 24
    下载次数
  • 2009-09-16 22:20
    上传日期
SDL入门教程;本教程是为电脑游戏制作的发烧友准备的;SDL在过去的几年中,成为了跨平台开发PC游戏的首选。即使是在Windows平台下,SDL有具有自身的优势。
Tutorial_of_SDL_for_game_designer.rar
  • Tutorial_of_SDL_for_game_designer.pdf
    710.4KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/625f93438cbeb85d5765fc4f/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625f93438cbeb85d5765fc4f/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">SDL<span class="ff2 sc1 ls1">&#20837;&#38376;&#25945;&#31243;&#65288;&#19968;&#65289;<span class="_ _0"></span><span class="ls2">&#65306;<span class="ff1 sc0 ls3"> </span></span></span></div><div class="t m0 x1 h3 y2 ff3 fs1 fc0 sc0 ls2 ws0">1<span class="ff4 sc1 ls4">&#12289;&#19968;&#20999;&#20174;&#38646;&#24320;&#22987;</span><span class="ls5"> <span class="_ _1"></span> </span></div><div class="t m0 x1 h4 y3 ff1 fs1 fc0 sc0 ls6 ws0">1.1<span class="ff2 sc1 ls2">&#65306;</span><span class="ls7">SDL<span class="ff2 sc1 ls4">&#26159;&#20160;&#20040;&#65311;</span><span class="ls8"> </span></span></div><div class="t m0 x1 h5 y4 ff5 fs2 fc0 sc0 ls9 ws1"> <span class="_"> </span>SDL<span class="_"> </span><span class="ff2 ls2 ws0">&#26159;<span class="_ _2"> </span></span><span class="lsa ws2">Simple DirectMedia Layer<span class="ff2 ls2 ws0">&#65288;&#31616;&#26131;&#30452;&#25511;&#23186;&#20307;&#23618;&#65289;&#30340;&#32553;&#20889;&#12290;&#23427;&#26159;&#19968;&#20010;&#36328;&#24179;&#21488;&#30340;&#22810;&#23186;</span></span></div><div class="t m0 x1 h6 y5 ff2 fs2 fc0 sc0 ls2 ws0">&#20307;&#24211;&#65292;<span class="_ _3"></span>&#20197;&#29992;&#20110;&#30452;&#25509;&#25511;&#21046;&#24213;&#23618;&#30340;&#22810;&#23186;&#20307;&#30828;&#20214;&#30340;&#25509;&#21475;&#12290;<span class="_ _3"></span>&#36825;&#20123;&#22810;&#23186;&#20307;&#21151;&#33021;&#21253;&#25324;&#20102;&#38899;&#39057;&#12289;<span class="_ _3"></span>&#38190;&#30424;&#21644;&#40736;&#26631;</div><div class="t m0 x1 h5 y6 ff2 fs2 fc0 sc0 ls2 ws0">&#65288;&#20107;&#20214;&#65289;<span class="_ _4"></span>&#12289;&#28216;&#25103;&#25671;&#26438;&#31561;&#12290;&#24403;&#28982;&#65292;&#26368;&#20026;&#37325;&#35201;&#30340;&#26159;&#25552;&#20379;&#20102;<span class="_ _2"> </span><span class="ff5 lsb">2D<span class="_"> </span></span>&#22270;&#24418;&#24103;&#32531;&#20914;&#65288;<span class="ff5 lsc">framebuffer<span class="_ _5"></span><span class="ff2 ls2">&#65289;&#30340;&#25509;&#21475;&#65292;</span></span></div><div class="t m0 x1 h5 y7 ff2 fs2 fc0 sc0 ls2 ws0">&#20197;&#21450;&#20026;<span class="_ _2"> </span><span class="ff5 lsd">OpenGL<span class="_ _6"> </span></span>&#19982;&#21508;&#31181;&#25805;&#20316;&#31995;&#32479;&#20043;&#38388;&#25552;&#20379;&#20102;&#32479;&#19968;&#30340;&#26631;&#20934;&#25509;&#21475;&#20197;&#23454;&#29616;<span class="_ _2"> </span><span class="ff5 lsb">3D<span class="_"> </span></span>&#22270;&#24418;&#12290;<span class="_ _3"></span>&#20174;&#36825;&#20123;&#23646;&#24615;&#25105;</div><div class="t m0 x1 h5 y8 ff2 fs2 fc0 sc0 ls2 ws0">&#20204;&#21487;&#20197;&#30475;&#20986;&#65292;<span class="ff5 lse">SDL<span class="_"> </span></span>&#22522;&#26412;&#19978;&#21487;&#20197;&#35748;&#20026;&#26159;&#20026;&#20197;&#30005;&#33041;&#28216;&#25103;&#20026;&#26680;&#24515;&#24320;&#21457;&#30340;&#22810;&#23186;&#20307;&#24211;&#12290;<span class="ff5"> </span></div><div class="t m0 x1 h5 y9 ff5 fs2 fc0 sc0 ls9 ws1"> <span class="_"> </span>SDL<span class="_ _6"> </span><span class="ff2 ls2 ws0">&#25903;&#25345;&#20027;&#27969;&#30340;&#25805;&#20316;&#31995;&#32479;&#65292;&#21253;&#25324;<span class="_ _7"> </span><span class="ff5 lsb">W<span class="_ _5"></span>ind<span class="_ _5"></span>ows<span class="_ _6"> </span><span class="ff2 ls2">&#21644;<span class="_ _7"> </span></span><span class="lsf">Linux<span class="ff2 ls2">&#12290;&#22312;&#23448;&#26041;&#30340;&#20171;&#32461;&#20013;&#65292;&#25105;&#20204;&#21487;&#20197;&#25214;&#21040;</span></span></span></span></div><div class="t m0 x1 h5 ya ff2 fs2 fc0 sc0 ls2 ws0">&#23427;&#25152;&#25903;&#25345;&#30340;&#20854;&#20182;&#24179;&#21488;&#12290;<span class="_ _8"></span>&#65288;<span class="ff5 ls10 ws3">SDL<span class="_ _5"></span> supports<span class="_ _5"></span> Linux, <span class="_ _5"></span>W<span class="_ _9"></span>indows, <span class="_ _9"></span>Win<span class="_ _5"></span>dows CE, BeOS, Mac<span class="_ _9"></span>OS, Mac OS X, </span></div><div class="t m0 x1 h5 yb ff5 fs2 fc0 sc0 ls11 ws4">FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. <span class="_"> </span><span class="ff2 ls2 ws0">&#65289;<span class="_ _4"></span>&#12290;<span class="ff5 lse">SDL<span class="_"> </span></span>&#26412;&#36523;&#20174;<span class="_ _2"> </span><span class="ff5">C<span class="_"> </span></span>&#35821;&#35328;&#24320;&#21457;&#65292;</span></div><div class="t m0 x1 h5 yc ff2 fs2 fc0 sc0 ls2 ws0">&#24182;&#19988;&#33021;&#24456;&#22909;&#30340;&#22312;<span class="_ _a"> </span><span class="ff5 ls12">C++</span>&#31561;&#39640;&#32423;&#35821;&#35328;&#20013;&#20351;&#29992;&#12290;<span class="_ _4"></span>&#22312;&#23448;&#26041;&#21487;&#20197;&#30475;&#21040;<span class="_ _a"> </span><span class="ff5 ls13">SDL<span class="_ _a"> </span></span>&#25152;&#25903;&#25345;&#30340;&#35821;&#35328;&#24456;&#22810;&#12290;<span class="_ _b"></span>&#65288;<span class="ff5 ls14">Including </span></div><div class="t m0 x1 h5 yd ff5 fs2 fc0 sc0 ls15 ws5">Ada, C#, Eif<span class="_ _9"></span>fel, Erlang, Euphoria,<span class="_ _5"></span> Guile, Haskell, Ja<span class="_ _9"></span>va, Lisp, Lua, ML, Objective<span class="_ _9"></span> C, Pascal, Perl, </div><div class="t m0 x1 h5 ye ff5 fs2 fc0 sc0 ls15 ws6">PHP<span class="_ _c"></span>, Pike, Pliant, Python, <span class="_ _9"></span>Ruby<span class="_ _9"></span>, Smalltalk, an<span class="_ _5"></span>d T<span class="_ _c"></span>cl. <span class="_"> </span><span class="ff2 ls2 ws0">&#65289;<span class="ff5"> </span></span></div><div class="t m0 x1 h5 yf ff5 fs2 fc0 sc0 ls9 ws1"> <span class="_"> </span>SDL<span class="_"> </span><span class="ff2 ls2 ws0">&#22312;<span class="_ _2"> </span></span><span class="ls16 ws7">GNU LGPL<span class="_ _9"></span> ve<span class="_ _d"></span>rsion 2<span class="_"> </span><span class="ff2 ls2 ws0">&#19979;&#21457;&#24067;&#65292;<span class="_ _e"></span>&#36825;&#24847;&#21619;&#30528;&#20320;&#21487;&#20197;&#20813;&#36153;&#30340;&#20351;&#29992;&#12290;<span class="_ _e"></span>&#24182;&#19988;&#21487;&#20197;&#20813;&#36153;&#30340;&#29992;</span></span></div><div class="t m0 x1 h5 y10 ff2 fs2 fc0 sc0 ls2 ws0">&#20110;&#21830;&#19994;&#36719;&#20214;&#30340;&#21046;&#20316;&#65288;&#21482;&#35201;&#20320;&#30452;&#25509;&#20351;&#29992;<span class="_ _6"> </span><span class="ff5 lse">SDL<span class="_ _7"> </span></span>&#30340;&#21160;&#24577;&#38142;&#25509;&#24211;&#65292;<span class="ff5 lsb">W<span class="_ _9"></span>indows<span class="_"> </span><span class="ff2 ls2">&#19979;&#30340;<span class="_ _7"> </span></span><span class="ls9">SDL.dll<span class="ff2 ls2">&#65289;<span class="_ _4"></span>&#12290;&#22914;&#26524;&#20320;</span></span></span></div><div class="t m0 x1 h5 y11 ff2 fs2 fc0 sc0 ls2 ws0">&#23558;<span class="_ _2"> </span><span class="ff5 lse">SDL<span class="_"> </span></span>&#24211;&#32534;&#35793;&#36827;&#20102;&#33258;&#24049;&#30340;&#20108;&#36827;&#21046;&#20195;&#30721;&#20013;&#65292;<span class="_ _f"></span>&#20320;&#38656;&#35201;&#25351;&#26126;&#20320;&#25152;&#20351;&#29992;&#30340;<span class="_ _2"> </span><span class="ff5 lse">SDL<span class="_"> </span></span>&#24211;&#30340;&#29256;&#26412;&#20197;&#21450;&#21253;&#25324;&#20320;</div><div class="t m0 x1 h6 y12 ff2 fs2 fc0 sc0 ls2 ws0">&#33258;&#24049;&#20462;&#25913;&#30340;&#28304;&#20195;&#30721;&#65292;<span class="_ _3"></span>&#24182;&#35828;&#26126;&#36825;&#20123;&#20195;&#30721;&#30340;&#21407;&#22987;&#20986;&#22788;&#12290;<span class="_ _3"></span>&#36825;&#26159;&#24456;&#23485;&#26494;&#30340;&#27861;&#24459;&#65292;<span class="_ _3"></span>&#20320;&#21487;&#20197;&#29992;&#22914;&#27492;&#24378;&#22823;&#30340;</div><div class="t m0 x1 h5 y13 ff2 fs2 fc0 sc0 ls2 ws0">&#22810;&#23186;&#20307;&#24211;&#23436;&#20840;&#21512;&#27861;&#30340;&#20813;&#36153;&#24320;&#21457;&#21830;&#19994;&#28216;&#25103;&#12290;<span class="ff5"> </span></div><div class="t m0 x1 h5 y14 ff5 fs2 fc0 sc0 ls2 ws0"> </div><div class="t m0 x1 h4 y15 ff1 fs1 fc0 sc0 ls6 ws0">1.2<span class="ff2 sc1 ls17">&#65306;&#26412;&#25945;&#31243;&#26159;&#20026;&#35841;&#20934;&#22791;&#30340;&#65311;</span><span class="ls2"> </span></div><div class="t m0 x1 h5 y16 ff5 fs2 fc0 sc0 ls18 ws0"> <span class="_"> </span><span class="ff2 ls2">&#26412;&#25945;&#31243;&#26159;&#20026;&#30005;&#33041;&#28216;&#25103;&#21046;&#20316;&#30340;&#21457;&#28903;&#21451;&#20934;&#22791;&#30340;&#12290;<span class="_ _4"></span>&#22240;&#20026;<span class="_ _a"> </span><span class="ff5 lsf">Linux<span class="_"> </span></span>&#30340;<span class="_ _5"></span>&#26222;&#21450;&#20197;&#21450;&#19981;&#21463;<span class="ff5 lsb">$M<span class="_ _10"> </span></span>&#30340;&#29301;&#21046;&#65292;<span class="_ _4"></span><span class="ff5 lse">SDL</span></span></div><div class="t m0 x1 h5 y17 ff2 fs2 fc0 sc0 ls2 ws0">&#22312;&#36807;&#21435;&#30340;&#20960;&#24180;&#20013;&#65292;&#25104;&#20026;&#20102;&#36328;&#24179;&#21488;&#24320;&#21457;<span class="_ _7"> </span><span class="ff5 ls13">PC<span class="_ _7"> </span></span>&#28216;&#25103;&#30340;&#39318;&#36873;&#12290;&#21363;&#20351;&#26159;&#22312;<span class="_ _7"> </span><span class="ff5 ls19">Windows<span class="_ _7"> </span></span>&#24179;&#21488;&#19979;&#65292;<span class="ff5 lse">SDL<span class="_ _7"> </span></span>&#26377;</div><div class="t m0 x1 h5 y18 ff2 fs2 fc0 sc0 ls2 ws0">&#20855;&#26377;&#33258;&#36523;&#30340;&#20248;&#21183;&#12290;&#19982;<span class="_ _11"> </span><span class="ff5 ls1a">MFC<span class="_ _11"> </span></span>&#20351;&#29992;&#19981;&#25104;&#29087;&#30340;<span class="_ _11"> </span><span class="ff5 ls12">C++</span>&#22806;&#34920;&#20266;&#23553;&#35013;&#30340;<span class="_ _11"> </span><span class="ff5 ls1b">win32api<span class="_ _11"> </span></span>&#20197;&#21450;&#19968;&#23478;&#29420;&#21809;&#25512;&#23815;&#30340;</div><div class="t m0 x1 h5 y19 ff5 fs2 fc0 sc0 ls1c ws0">COM<span class="_ _6"> </span><span class="ff2 ls2">&#39118;&#26684;&#21644;</span><span class="ls1d">.net<span class="_ _12"> </span><span class="ff2 ls2">&#30456;&#27604;&#36739;&#65292;</span><span class="lse">SDL<span class="_ _6"> </span><span class="ff2 ls2">&#26159;&#26356;&#32431;&#31929;&#30340;<span class="_ _6"> </span><span class="ff5">C<span class="_ _6"> </span></span>&#39118;&#26684;&#12290;&#26080;&#35770;&#20320;&#26159;&#21916;&#27426;&#32431;<span class="_ _6"> </span><span class="ff5">C<span class="_ _6"> </span></span><span class="ls1e">&#36824;&#26159;<span class="_ _12"> </span></span></span><span class="ls1f">OOP<span class="_ _6"> </span><span class="ff2 ls2">&#30340;<span class="_ _6"> </span></span><span class="ls12">C++<span class="ff2 ls2">&#65292;</span></span></span></span></span></div><div class="t m0 x1 h5 y1a ff2 fs2 fc0 sc0 ls2 ws0">&#20320;&#37117;&#21487;&#20197;&#25353;&#29031;&#20320;&#33258;&#24049;&#21916;&#27426;&#30340;&#26041;&#24335;&#23545;<span class="_ _7"> </span><span class="ff5 lse">SDL<span class="_ _7"> </span></span>&#36827;&#34892;&#20877;&#27425;&#23553;&#35013;&#65292;&#21482;&#35201;&#20320;&#33258;&#24049;&#24895;&#24847;&#65292;&#21487;&#20197;&#35753;&#33258;&#24049;&#30340;&#31243;</div><div class="t m0 x1 h5 y1b ff2 fs2 fc0 sc0 ls2 ws0">&#24207;&#26356;&#25509;&#36817;<span class="_ _2"> </span><span class="ff5 ls20">C/C++</span>&#30340;&#26631;&#20934;&#39118;&#26684;&#65292;&#35753;&#20195;&#30721;&#26356;&#21152;&#20248;&#32654;&#20063;&#26356;&#21152;&#23481;&#26131;&#38405;&#35835;&#12290;<span class="ff5"> </span></div><div class="t m0 x1 h5 y1c ff5 fs2 fc0 sc0 ls18 ws0"> <span class="_"> </span><span class="ff2 ls2">&#20107;&#23454;&#19978;&#65292;&#22312;&#25105;&#30475;&#26469;&#65292;&#26377;&#20102;&#26631;&#20934;<span class="_ _6"> </span></span><span class="ls12">C++<span class="ff2 ls2">&#65288;&#20852;&#22859;&#30340;&#26399;&#24453;<span class="_ _12"> </span></span><span class="lsa">C++0x<span class="_ _12"> </span><span class="ff2 ls2">&#30340;&#21457;&#24067;&#65289;<span class="_ _4"></span>&#65292;<span class="ff5 lse">SDL<span class="_ _12"> </span></span>&#21644;<span class="_ _12"> </span><span class="ff5 ls21">OpenGL<span class="_ _7"> </span></span>&#36825;</span></span></span></div><div class="t m0 x1 h5 y1d ff2 fs2 fc0 sc0 ls2 ws0">&#20123;&#26631;&#20934;&#25110;&#20813;&#36153;&#24211;&#30340;&#25903;&#25345;&#65292;<span class="_ _f"></span>&#23436;&#20840;&#21487;&#20197;&#25172;&#25481;&#19982;<span class="_ _2"> </span><span class="ff5 ls12">C++</span>&#26631;&#20934;&#24182;&#19981;&#24590;&#20040;&#21644;&#35856;&#30340;<span class="ff5 ls22">&#8220;W<span class="_ _9"></span>in<span class="_ _d"></span>dows<span class="_"> </span><span class="ff2 ls2">&#32534;&#31243;<span class="ff5">&#8221;</span><span class="ls1e">&#20102;&#12290;<span class="_ _f"></span>&#27809;<span class="_ _d"></span>&#26377;</span></span></span></div><div class="t m0 x1 h5 y1e ff2 fs2 fc0 sc0 ls2 ws0">&#35841;&#24895;&#24847;&#34987;&#21035;&#20154;&#29301;&#30528;&#40763;&#23376;&#36208;&#65292;&#36825;&#20010;&#36947;&#29702;&#22312;&#36719;&#20214;&#34892;&#19994;&#23588;&#20854;&#30340;&#26126;&#26174;&#12290;<span class="ff5"> </span></div><div class="t m0 x1 h5 y1f ff5 fs2 fc0 sc0 ls2 ws0"> </div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐