• 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
NathanRidley

SharpDX - SwapChain1 - where are the constructors?

6 posts in this topic

I'm currently going through Direct3D Rendering Cookbook, 2nd Edition and in the first chapter it's constructing an instance of SharpDX.DXGI.SwapChain1 and providing a number of parameters, as per the SharpDX source code here. Now, I've installed the latest from the SharpDX website, and am referencing the assemblies in the DirectX11_1-net40 folder, and I'm also running on Windows 8.1 with DirectX 11.2 (which my video card supports), and yet in my code, the only exposed constructor I have access to is SwapChain1(IntPtr nativePtr). There is absolutely no sign of the constructors I linked above in the SharpDX source on Github.

 

Any idea what I might be doing wrong?

 

Screenshot of the code from my Kindle Reader:

2014-02-22_1256.png

 

Screenshot of me not being able to write the above code on my machine:

 

2014-02-22_1259.png

Edited by axefrog
1

Share this post


Link to post
Share on other sites

Well I have my answer. The folks at SharpDX actually haven't updated the main download for a while. I need the DirectX11_2 build of SharpDX, which I kind of have to do myself, it seems.

0

Share this post


Link to post
Share on other sites

Using the latest dev package 2.5.1 from the home page, this should be in the folder DirectX11_2-net40 and constructors are available from the DXGI assembly there.

[Edit] You don't need to build yourself, there is a build 2.5.1 package build updated to the latest changes[/Edit]

Edited by xoofx
1

Share this post


Link to post
Share on other sites

Well I have my answer. The folks at SharpDX actually haven't updated the main download for a while. I need the DirectX11_2 build of SharpDX, which I kind of have to do myself, it seems.

 

Make sure to use the "Latest Dev Package" download link on the SharpDX homepage. It includes the binaries for 11_2.

Edit: Xoofx was faster smile.png

1

Share this post


Link to post
Share on other sites

Using the latest dev package 2.5.1 from the home page, this should be in the folder DirectX11_2-net40 and constructors are available from the DXGI assembly there.

[Edit] You don't need to build yourself, there is a build 2.5.1 package build updated to the latest changes[/Edit]

 

Ahah, thanks, I couldn't get anything to build anyway. Loading the SharpDX solution into Visual Studio 2013 had a tonne of errors. References to methods, identifiers and so forth that did not exist anywhere in the entire code SharpDX base.

0

Share this post


Link to post
Share on other sites

 

Ahah, thanks, I couldn't get anything to build anyway. Loading the SharpDX solution into Visual Studio 2013 had a tonne of errors. References to methods, identifiers and so forth that did not exist anywhere in the entire code SharpDX base.

 

Compiling SharpDX requires to install prerequisites (as described on the download page: Windows SDK7.1 even for Windows8, DirectX June SDK 2010, Net20/Net35 on Windows8) and select the correct solution target platform (DirectX11_2Debug) when building

0

Share this post


Link to post
Share on other sites

I know you already have this sorted axefrog, but for others following this the dev package xoofx refers to is included in the code download for the book as well under the folder .\External\Bin

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