• 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.
Sign in to follow this  
Followers 0
CDProp

Anyone want to help me choose a framework for some tools I want to write [Windows 7]?

17 posts in this topic

It would be much appreciated.=)

Basically, the apps are just some tools to assist in game programming (editors and the like). So, there needs to be a panel that displays a 3D scene, along with a toolbar, property grid, etc.

I've written one such app before using WinForms in C#. I've found it to be a bit of a pain, because the 3D scene drawing was all done by a native C++ DLL, and I had to use p/Invoke in order to make calls into it. This means that my C++ DLL needed to have a flat API of C-linked functions (I could have omitted that step, but who wants to deal with mangling?). I could only marshal across PODS, basically, and I certainly couldn't instantiate C++ classes and manipulate the objects directly. The worst problem, though, is that any time I had an unhandled exception in the C++ DLL, I didn't get any information about it except a generic message that said "Something went kaboom" (or something equally uninformative).

I've also written one such app using WPF, but it had the same problem as above, with the additional problem that WPF doesn't give you a separate window handle for each control; instead, the entire window shares a device context, and so drawing just to one panel control (say) is difficult. The easiest solution ended up being to render to an offscreen buffer and read the pixels back, which was kinda gross.

I suppose I could use p/Invoke to make a thin wrapper around OpenGL32.dll (which I haven't tried before, but seems like it'd work), but I'd much rather just link to the same engine DLL that my game uses, so that code gets reused, instead of duplicating all of the functionality I need in C#.

So, I'm really itching to do something in native C++. What are my options here? As far as I can tell: Win32, MFC, and Qt. Out of these three, only Qt seems modern and friendly enough to use. However, it's the only one that I have no experience with.

What is the deal with the SDK? I installed it, and it's gargantuan (more than a gig), has it's own SDK, and installed some drivers on my machine (one of which was unsigned). I feel like I've swallowed a cow. I don't want to use their IDE. I see there is a Visual Studio Qt addon, so I suppose that would work. What do you think? Is it worth all of this? I was hoping for just a set of libraries and headers that I can link/include in my project.

My GUI needs are pretty simple. Window, menu, toolbar, property grid, panel with 3D scene. I can roll all of this programmatically; I don't need resource files, wizards, WYSIWYGs, etc. I admit I'll miss Xaml, though. =D Edited by CDProp
1

Share this post


Link to post
Share on other sites
You could use C# to create a windows form and add buttons and such to it, and draw the scene on the form with XNA.

[url="https://www.google.com.au/search?q=XNA+Windowsforms"]https://www.google.com.au/search?q=XNA+Windowsforms[/url]

it can be done:
[url="http://www.codeproject.com/Articles/21330/Easy-Rendering-with-XNA-Inside-a-Windows-Form"]http://www.codeproject.com/Articles/21330/Easy-Rendering-with-XNA-Inside-a-Windows-Form[/url]

Enjoy :)
1

Share this post


Link to post
Share on other sites
You could always take a look at wxWidgets which is lightweight in comparison to Qt
2

Share this post


Link to post
Share on other sites
I made a few C#/WinForms XNA apps for sprite sheet creation on an old 2D project. It was pretty cool. For this, though, I'd rather use the graphics DLL I wrote in native C++ so hat the tools and the game share the graphics engine.

wxWidgets looks fantastic.

Thanks for the suggestions, people.
0

Share this post


Link to post
Share on other sites
[quote name='ChaosEngine' timestamp='1345069759' post='4969973']
Your C++ engine has a defined API, right? Wrap that in C++/CLI and call it from winforms.
[/quote]

Hmmmm, this sounds promising. So how does this work? I write a C++\CLI wrapper library that links to the native C++ library, and then write a C# WinForms app that references the C++\CLI wrapper? Edited by CDProp
0

Share this post


Link to post
Share on other sites
I loooove SlimDX, but for this particular set of tools I want to link to my game engine, which is written in C++.
0

Share this post


Link to post
Share on other sites
[quote]Hmmmm, this sounds promising. So how does this work? I write a C++\CLI wrapper library that links to the native C++ library, and then write a C# WinForms app that references the C++\CLI wrapper?[/quote]

Yes, this is essentially what you do.
2

Share this post


Link to post
Share on other sites
You could also use swig( [url="http://www.swig.org/"]http://www.swig.org/[/url]) to expose your API to C# or Python and then use Winforms or PyQt to write your tool.
1

Share this post


Link to post
Share on other sites
[quote name='CDProp' timestamp='1345002278' post='4969714']Out of these three, only Qt seems modern and friendly enough to use. However, it's the only one that I have no experience with.[/quote]
From my experience with Qt, it's fairly easy to get used to.

[quote name='CDProp' timestamp='1345002278' post='4969714']What is the deal with the SDK? I installed it, and it's gargantuan (more than a gig), has it's own SDK.[/quote]
The biggest part of this SDK seems to be the debug version of the libraries, which because Qt is so extensive are rather large as well.

[quote name='CDProp' timestamp='1345002278' post='4969714']I don't want to use their IDE.[/quote]
Is there is a reason why you don't want to use it? The QtCreator IDE is pretty advanced, in certain aspects even superior to visual studio. You can setup multiple compilers with the IDE, you if you select the same compiler you used for your engine you probably can link to the libraries compiled there, and just write the GUI code in it.
1

Share this post


Link to post
Share on other sites
[quote]I loooove SlimDX, but for this particular set of tools I want to link to my game engine, which is written in C++.[/quote]

Ack, sorry, I misunderstood then. Embedding your engine and such is all a decision you must make ofcourse.

I actually don't embed my C++ engine, as it introduced a lot of pollution between the tools and the code. Which was just my experience with that I was trying to achieve.

I would propose, as an alternative (ie. it's upto you ofcourse, I'm just "putting it out there"), writing a simple network connection between your tools and a running game. It provides you with everything an embedded solution does but with a more defined border between tools code and game, it also allows remote debugging and so on and can just be compiled out in a release/master build if desired. Whether that fits what you're after or not, is entirely dependant on what you're wanting out of it all ofcourse.

n!
1

Share this post


Link to post
Share on other sites
Another C++ based application framework that is lighter weight than Qt but with a more modern design than wxWidgets (imho) is Juce.
1

Share this post


Link to post
Share on other sites
Whoa, there are so many options out there that I wasn't even aware of. I think the idea of the network interface between the game and the tools is particularly creative. I will also look into Swig and Juce, and give Qt another look. I don't mind using Qt Creator, I guess, and I know that there are some Visual Studio plugins for it. I was just a bit taken aback by the scope of it, because it was quite a bit larger than what I needed (although I son't doubt that developers of more-complex GUI apps find it extremely helpful).
0

Share this post


Link to post
Share on other sites
Qt is made up of several individual modules, when you install the SDK it will install them all, but you don't have to use them all. The QtCore and QtGui libraries are enough for simple GUI applications, all other modules are optional, if you don't use them you don't have to link to them and you will not have a dependency on that dll either. Other modules include multimedia library (audio and video), svg rendering, networking, webkit (for embedding html), scripting, sql, opengl, openvg and xml. You probably won't touch them for a simple GUI application.
2

Share this post


Link to post
Share on other sites
Hi,
i have used [b]wxWidgets[/b] for years and it is a nice framework. But [b]Qt is easier to use[/b] and [b]far more powerfull than wxWidgets[/b]. You will create your software quicker and in a more nice way. I recommend you to use QtCreator and to create all interface with it.
See some tutorial (even on Youtube) to know how to use QtCreator. You will see that it is quicker than wxWidgets.
If you want to use wxWigdgets use wxFormBuilder to construct your interface but...less nice than QtCreator.
See you
0

Share this post


Link to post
Share on other sites
[quote name='jwezorek' timestamp='1345140303' post='4970275']
Another C++ based application framework that is lighter weight than Qt but with a more modern design than wxWidgets (imho) is Juce.
[/quote]

Yes but it exists only in GPL and Commercial licence. Qt exists in GPL or LGPL licence.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0