Re: Reflection in game engine (c++)
Xpol Wan <[email protected]> Fri, 15 Mar 2013 11:49:16 +0800
| Newsgroups | gmane.games.devel.sweng |
|---|---|
| Message-ID | <CAJUe2WEE3pRfxaZa9cZh8k5H9PsmbSp8KAEA6UAzKNkPm2WKDg@mail.gmail.com> |
--===============1725876618== Content-Type: multipart/alternative; boundary=047d7b62239c38a51b04d7ee8759 --047d7b62239c38a51b04d7ee8759 Content-Type: text/plain; charset=UTF-8 I mean data are defined in Lua. C++ just do the low level things such as drawing, event etc. For low level data such bitmap, c++ define it and have a Lua wrapper. I think we don't need reflection for bitmap object. Best Regards! Xpol Wan // There is a better way! On Fri, Mar 15, 2013 at 11:41 AM, Mike Acton <[email protected]> wrote: > *I prefer create mixed language game engine.* > > I'm not sure how that avoids the question? For instance, something still > needs to describe the data exchange between the scripted language and the > native runtime. e.g. We use DDL to generate APIs and data formats for that > kind of thing too. For instance we have a "REST compiler" which generates > an http rest(-ish) interface, with all the data descriptions for our > asset/tools server. It's also used to describe the interfaces between > game-scripting and native code. > > > > _______________________________________________ > Sweng-Gamedev mailing list > [email protected] > http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com > > --047d7b62239c38a51b04d7ee8759 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I mean data are defined in Lua.<div>C++ just do the low le= vel things such as drawing, event etc.</div><div style>For low level data s= uch bitmap, c++ define it and have a Lua wrapper.</div><div style>I think w= e don't need=C2=A0reflection for bitmap object.</div> <div><div><br></div></div></div><div class=3D"gmail_extra"><br clear=3D"all= "><div>Best Regards!<br><br>Xpol Wan<br>// There is a better way!<font face= =3D"'times new roman', serif"><br></font></div> <br><br><div class=3D"gmail_quote">On Fri, Mar 15, 2013 at 11:41 AM, Mike A= cton <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_b= lank">[email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_= quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1= ex"> <div class=3D"im"><span style=3D"color:rgb(34,34,34);font-size:13px;font-fa= mily:arial,sans-serif"><i>I prefer create mixed language game engine.</i></= span><div><span style=3D"color:rgb(34,34,34);font-size:13px;font-family:ari= al,sans-serif"><br> </span></div></div><div><span style=3D"color:rgb(34,34,34);font-size:13px;f= ont-family:arial,sans-serif">I'm not sure how that avoids the question?= For instance, something still needs to describe the data exchange between = the scripted language and the native runtime. =C2=A0e.g. We use DDL to gene= rate APIs and data formats for that kind of thing too. For instance we have= a "REST compiler" which generates an http rest(-ish) interface, = with all the data descriptions for our asset/tools server. It's also us= ed to describe the interfaces between game-scripting and native code.</span= ></div> <div><span style=3D"color:rgb(34,34,34);font-size:13px;font-family:arial,sa= ns-serif"><br></span></div><div><span style=3D"color:rgb(34,34,34);font-siz= e:13px;font-family:arial,sans-serif"><br> </span></div> <br>_______________________________________________<br> Sweng-Gamedev mailing list<br> <a href=3D"mailto:[email protected]">Sweng-Gamedev@list= s.midnightryder.com</a><br> <a href=3D"http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnig= htryder.com" target=3D"_blank">http://lists.midnightryder.com/listinfo.cgi/= sweng-gamedev-midnightryder.com</a><br> <br></blockquote></div><br></div> --047d7b62239c38a51b04d7ee8759-- --===============1725876618== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sweng-Gamedev mailing list [email protected] http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com --===============1725876618==--