✅ Graphics and Windows
Hi I am interested in creating my own window instead of using the command console or winforms, I have no clue how to create this window or make graphics for it, I'd like to make it all so I understand it, does anyone have any resources to do this or just know how? Thanks!
17 Replies
Hello World app with WPF in C# - Visual Studio (Windows)
Create a simple Windows Desktop .NET app in C# with Visual Studio using the Windows Presentation Foundation (WPF) UI framework.
Is there anyway to do this without visual studio? Like create it from scratch idk if that's possibel lol
in notepad if you have a compiler and hate yourself you want to use WPF or really go from scratch? then you have to learn the windows api (to create a window) and probably directx (to do the graphics)
How do I create a compiler lol?
I hate myself :)
you dont
thats too much effort
first you cut down a tree, then you get stone, then iron and redstone, then you build some redstone circuits to build a compiter. then you make a compiler in assembly to make your own programming language like C. then you create an operatingsystem with a gui. then you create a window a gpu and graphics drivers and api and there you go a window from scratch
sounds good!
thanks :D
ill see you in 300 years when you are done with the project
o/
👋
goodluck
Create a window - Win32 apps
Learn how to create a window as the first step in this sample module for your first Windows program.
Create a simple Direct2D application - Win32 apps
Walks you through the process of creating a window that renders Direct2D content.
Text Rendering with Direct2D and DirectWrite - Win32 apps
Unlike other APIs, such as GDI, GDI+ or WPF, Direct2D interoperates with another API, DirectWrite, to manipulate and render text. This topic describes the benefits and interoperation of these separate components.
Work with DirectX device resources - Win32 apps
Understand the role of the Microsoft DirectX Graphics Infrastructure (DXGI) in your Windows Store DirectX game.
if you want to actually make a desktop app, use WPF in visual studio. if you want to learn about windows, read all this
Amazing :D
I can also recommend https://www.nuget.org/packages/Silk.NET.Windowing/ if you want a simple crossplatform abstraction over windowing in c#
Silk.NET.Windowing 2.17.1
Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, and DirectX.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.