void Draw(const Microsoft::WRL::ComPtr<ID3D11DeviceContext> &pDeviceContext) { // VBのセット ID3D11Buffer* pBufferTbl[] = { m_pVertexBuf.Get() }; UINT SizeTbl[] = { sizeof(Vertex) }; UINT OffsetTbl[] = { 0 }; pDeviceContext->IASetVertexBuffers(0, 1, pBufferTbl, SizeTbl, OffsetTbl); // IBのセット pDeviceContext->IASetIndexBuffer(m_pIndexBuf.Get(), DXGI_FORMAT_R32_UINT, 0); // プリミティブタイプのセット pDeviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); pDeviceContext->DrawIndexed(m_indices // index count , 0, 0); }
void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) { g_pD3DContext->DrawIndexed( count, 0, 0 ); //LOGInfo( LOGTag, "********************************* glDrawElements() not implemented\n" ); }