directx

Why is there no DirectX API for Linux?

我只是一个虾纸丫 提交于 2019-12-04 09:04:05
问题 Upon considering the driver side implementation for DirectX API on windows systems for modern video cards I was wondering why this implementation is not available on non-windows system, most notably linux. Since there is an obvious absence of this functionality I can only assume there is a good reason which I am blind to, but in my primitive understanding I simply see the DirectX calls as no more than function entry points on the hardware device. And for the record I am not referring to a

Where can I learn DirectX programming? [closed]

夙愿已清 提交于 2019-12-04 07:50:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to learn DirectX in C++ programming. I decided to learn DirectX, so I found some tutorials online, but they all were very complicated and hard to understand. I have spent 3 days on a tutorial, and I have read everything, but I still can't even make an program that initializes DirectX. I think its very

Bilinear interpolation - DirectX vs. GDI+

寵の児 提交于 2019-12-04 05:03:05
I have a C# app for which I've written GDI+ code that uses Bitmap/TextureBrush rendering to present 2D images, which can have various image processing functions applied. This code is a new path in an application that mimics existing DX9 code, and they share a common library to perform all vector and matrix (e.g. ViewToWorld/WorldToView) operations. My test bed consists of DX9 output images that I compare against the output of the new GDI+ code. A simple test case that renders to a viewport that matches the Bitmap dimensions (i.e. no zoom or pan) does match pixel-perfect (no binary diff) - but

Direct2D : Unhandled Exception In WM_RESIZE switch case

老子叫甜甜 提交于 2019-12-04 03:42:06
问题 I am creating a Simple Direct2D Application. Unfortunately it is giving an unhandled exception. The function where it is taking place: void DemoApp::OnResize(UINT width, UINT height) { if (m_pRenderTarget) <----|****The exception occurs here.....**** { // Note: This method can fail, but it's okay to ignore the // error here, because the error will be returned again // the next time EndDraw is called. m_pRenderTarget->Resize(D2D1::SizeU(width, height)); } } And the code snippet calling

API to get the graphics or video memory

自作多情 提交于 2019-12-04 03:31:50
问题 I want to get the adpater RAM or graphics RAM which you can see in Display settings or Device manager using API. I am in C++ application. I have tried seraching on net and as per my RnD I have come to conclusion that we can get the graphics memory info from 1. DirectX SDK structure called DXGI_ADAPTER_DESC. But what if I dont want to use DirectX API. 2. Win32_videocontroller : But this class does not always give you adapterRAM info if availability of video controller is offline. I have

Good books or tutorials for beginning Direct X with c++ [closed]

冷暖自知 提交于 2019-12-04 03:29:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm pretty familiarity with c++. I'v made a few games like tetris and solitaire with it. But what I would really like is some nice textured graphics for those games :-p GDI just isn't doing it for me anymore. Really, all I would need to know is: DX scene initialization making something simple like a round

Animate 3D object on windows desktop

▼魔方 西西 提交于 2019-12-03 22:15:07
I need to draw and animate a 3D object on windows desktop that the user can interact with (a dog for example). User interaction assumes clicks, display of (iregular shape) dialogs for user input etc. Do you know any concrete way to achieve this? I am thinking I have several options, any recomendations, which one is best, easiest? WPF OpenGL DirectX XNA Are there any libraries (free or paid) that can help? I have done some reasearch and it seems like WPF is a good choice. It can import 3D models and animate them or sub-parts. I can interact with the mouse on individual pieces of the model. I

How to convert quadratic bezier curve code into cubic bezier curve?

青春壹個敷衍的年華 提交于 2019-12-03 21:56:30
So I've recently picked up graphics programming and I wanted to compute a cubic Bézier curve. I found this excellent answer on quadratic Bézier but I don't know how to convert this to a cubic Bézier curve. polfosol ఠ_ఠ For cubic Bézier curve, as you see in the link you shared, the green lines are obtained from the same procedure as the quadratic one. the differences are: you have two green lines, and then you need to calculate a blue line based on them. So the for loop changes as: for( float i = 0 ; i < 1 ; i += 0.01 ) { // The Green Lines xa = getPt( x1 , x2 , i ); ya = getPt( y1 , y2 , i );

LNK2001 and LNK2019 errors - DirectX unresolved external symbols

元气小坏坏 提交于 2019-12-03 21:03:45
I am following along with the book "Introduction to 3D Game Programming with DirectX11" by Frank D. Luna. And I am getting these errors when I try and build my project. >BoxDemo.obj : error LNK2019: unresolved external symbol _D3DX11CompileFromFileW@44 referenced in function "private: void __thiscall BoxApp::BuildFX(void)" (?BuildFX@BoxApp@@AAEXXZ) >BoxDemo.obj : error LNK2019: unresolved external symbol _D3DX11CreateEffectFromMemory@20 referenced in function "private: void __thiscall BoxApp::BuildFX(void)" (?BuildFX@BoxApp@@AAEXXZ) >BoxDemo.obj : error LNK2019: unresolved external symbol

How to copy frontBuffer data to texture DirectX 9

我的梦境 提交于 2019-12-03 21:02:00
I can't seem to find a way to create a texture from the surface data I acquire through the front buffer data of my application This is the code I'm pretty sure is working (Direct X 9, C++) // capture screen IDirect3DSurface9* pSurface; g_pd3dDevice->CreateOffscreenPlainSurface(640, 480, D3DFMT_A8R8G8B8, D3DPOOL_SCRATCH, &pSurface, NULL); g_pd3dDevice->GetFrontBufferData(0, pSurface); Now that I've got my frontBufferData, I would like to create a IDirect3DTexture9 object with it. This function / D3DXCreateTextureFromFileInMemory / seemed the most logical but doesn't seem to do the trick. I'm