我使用DirectX在緩衝區中繪製帶有RGB數據的圖像。下面是簡碼: // create the vertex buffer
D3D11_BUFFER_DESC bd;
ZeroMemory(&bd, sizeof(bd));
bd.Usage = D3D11_USAGE_DYNAMIC; // write access access by CPU and GP
我最近開始在C++中學習DirectX編程,並且遇到了一個小問題。 問題是,我的練習要求我將DirectX應用程序中的顏色從一個更改爲另一個。我有一個函數,這是否: void render_frame(void)
{
// start the random generator
srand(time(NULL));
// clear the window to ra