• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

felonius

[java] Report of making wrappers

2 posts in this topic

Sorry about the topic title. It should read: "Report about making wrappers" Hi, As many of you know, I am an advocate for combining C++ with Java. One way to do this is to package C++ libraries so they can be used in Java. The JWindows system at www.rolemaker.dk/JWindows/ is an example of this. JWindows is a Java version of MFC and it allows user to build native Windows applications in Java. However, wrapping libraries for use in Java shares many common features no matter the library being wrapped. I have therefore written an university report (Computer Science graduate level) called "Providing Java wrapper classes for C++ class hierarchies" and turned it in today. It explains how to make such a wrapper. Using the techniques within almost any library currently only existing in C++ can be made to work in Java. I think that this may be of use to many here. Anyway, you can download the report at: (zipped Word format) http://www.rolemaker.dk/articles/Wrappers/Report.zip Please let me know what you think and whether you find it useful. Jacob Marner Edited by - felonius on 11/22/00 4:08:57 PM
0

Share this post


Link to post
Share on other sites
You wont know this (so i''m telling you now), but I''m a critic of this sort of thing as it kill one of the founding principles of the language (cross platform), as far as I''m concerned the only valid reason for using native routines is to drive hardware. Having said that, your report is a good lowdown on how to use the native/jini methods (which is also covered by the Java tutorial @ http://web2.java.sun.com/docs/books/tutorial/native1.1/index.html ).
I''ll never really understand why you take the MFC as an example. Surly this is the worst bit of c++ to use as it is so platform dependent (isn''t it)??
0

Share this post


Link to post
Share on other sites
Hi bobbin,

Thanks for you reply.

There is several reasons for using Java. One of them is, as you say, to make platform independent code. Another is to use a language that is easy to use and allows you higher productivity than say C++. This is why I am using it. I don''t care about platform indendence. I see your point - killing platform independance takes away a good feature of the language, but also platform independance has its price: speed. It prioritize speed higher than platform independance, but everybody have their own priorities.

The report only contain a short JNI tutorial (not JINI which is something else entirely), but this was only included for the sake of my professor who doesn''t know it. It is chapter 4, that is the central chapter. It describes how to use JNI to make wrappers. That is no simple feat and not something described in tutorials. It is important to realize that knowing how to use JNI is not the same as knowing how to make wrappers. I know of no other litterature on that subject.

And about MFC. I need to do Windows programming on one of my upcoming projects but want to use Java. Wrapping MFC is a good solution - the win32 API is much worse. If you look at the wrapped samples you will see that MFC has become much nicer in Java. So I took MFC as a sample because I needed it and because it is a good example of a complex C++ library. If my techniques can wrap that then my techniques should be able to wrap anything.

Cheers,
Jacob Marner
0

Share this post


Link to post
Share on other sites