Hello i know how to create a window using directx, but how do i display stuff on that window instead of having a totally white and blank window
Your post is missing a few key details:
What version of DirectX?
Are you using classic Win32 development or UWP?
What language? C++? C#?
If you are new to DirectX, then you should start with DirectX 11. For Win32 classic application development in C++ you can the official Microsoft Docs tutorial mentioned in the comments above. For UWP, see this page instead.
See also this blog post and Microsoft Docs.
You may also want to take a look at the DirectX Tool Kit and these VS templates.
If you are looking to render 'presentation-style' graphics rather than 3D, then you may want to take a look at Direct2D.
Related
I just started using xamarin in visual studio for building cross-platform apps, and i was searching on the internet for some tutorial etc, and i ran into a website "material.io" and i found this amazing bottom navigation
So i searched on google for a tutorial to make that bottom navigation in xamarin.forms cross-platform environment.
But i didn,'t find anything, so i hoped that someone here at stackoverflow knew how to or could provide me with code or a tutorial.
thanks in advance
As Jason already mentioned, something like this requires a custom renderer. However, you're lucky since someone has already done the hard work for you.
There's a Xamarin.Android control called BottomNavigationBar which has been ported to Xamarin.Forms in the project BottomNavigationBarXF. You'll also find an example of how to get started on the latter repository. On iOS, the control defaults to the standard page with tabs on the bottom.
I am writing a game using xna for wp7 for the first time and finding difficult to implement main menu and managing game state. please provide any tutorials/links.
I searched on SO, found below link but the this link is broken.
http://create.msdn.com/en-US/education/catalog/sample/game_state_management
Try the Nokia developer site:
http://www.developer.nokia.com/Develop/Windows_Phone/Code_examples/
They have some good examples on XNA.
Do you know that you can mix XNA and Silverlight? i.e. Menus can be in Silverlight while your actual game screens can use XNA.
I have acutaly access to an closed beta of an online application developed with silverlight 5. Within there's a feature, showing some 3D scenes. There have been used XNA for the 3D. From a windows-pc all work fine. But when I test it from an Mac with OSX the Silverlight-App works fine, too. But not the 3D feature. In upper left corner there's a information showing: "Render Mode: Unavailable" and "Reason: "Not3DCapable".
So I pushed this example to my IIS. This time from Windows all is fine but when trying to access from OSX (Firefox) it starts to load Silverlight but after showing 100% nothing happens. The scene is not shown.
Does anyone has any clue, what to do to support mac?
Unfortunately I found some other websites like this Blog (see the 3. FAQ) and this Blog (see comments) whose say the same: 3D doesn't work on mac.
Sadly Microsoft seems to keep this fact officially secret. Found this Page where I had expected to read something like "3D not supported". Isn't this sad? I thought Silverlight should be platform independent? I hope they will change their mind and add a support for OpenGL or something like that.
I know that we can take screen shot of an App during runtime. In iOS we can use UIGraphicsBeginImageContext to get the screen shot. We can also do the same in Android.
But is it possible with Blackberry and Windows 7 Mobile OS?
A simple search for "blackberry screenshot" on stackoverflow returned this pretty straightforward answer:
Taking screenshot of the current screen in BlackBerry
And a search for "windows-phone screenshot" yields this:
Windows Phone 7 - Capture Screen
If what you need is for capture a screenshot of your own Windows Phone app, then this post from Jeff Wilcox will come in handy!
It looks like there is a function for that in Display. Check out the SDK reference.
There are a couple of Homebrew tools you can use to take screenshots on WP7 here and here however you wont be able to use these programatically. You can also something along the lines of Mark Artega or Jeff Wilcox
There is no Silverlight VisualBrush support for WP7 and no global Screenshot functionality on WP7 Mango, but writablebitmap.
There is a very usefull way by using default Microsoft Emulator integrated WP7 Screenshot Tool
or use third party methods.
If you are familar with XNA Framework, there you can access to the screen. Using Multithreading, you can do your screenshots that way. If never used the last app because I feel fine using Microsofts Emulator Screenshot button to save my png images.
After you can stitch it together using different ways.
I try to search available option about wp7 gesture. I found only Silverlight toolkit (http://silverlight.codeplex.com/) which has gesturelistener to get gesture events. It looks like some external library to add in the application. I’m wording are there any API comes with WP7 sdk right from Microsoft. But didn’t found anything so far.
I used MouseEventHandler and MouseButtonEventHandler to get any touch event in the emulator. It is not convient for a complicated multi touch, etc.
Please give me so link to study and discover gesture API. Thanks!
The Silverlight toolkit is an external library (to the SDK) but it is produced by people working at Microsoft. Most of the developers of the toolkit also work on the SDK. It is a way for them to release more controls but on a more frequent schedule than the main SDK.
The XNA framework contains some gesture detection but this is typically more complicated to include in a Silverlight application than the toolkit.
You could also write the gesture detection yourself using the manipulation or mouse events but I'd advise against this if possible.
I'd also advise against reinventing the wheel when there are already tools available.
There are gestures built into XNA; but either way, be it Silverlight toolkit or XNA library, you would have to add a reference in your solution.
This would be a nice starting place to learn about gestures in XNA: http://www.silverlightshow.net/items/XNA-for-Silverlight-developers-Part-5-Input-touch-gestures.aspx
Hope this helps!