mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
17 lines
368 B
C++
17 lines
368 B
C++
#include "rasterizerstate-dx.hpp"
|
|
#include "device-dx.hpp"
|
|
|
|
namespace xna {
|
|
bool RasterizerState::Initialize(GraphicsDevice& device, xna_error_ptr_arg)
|
|
{
|
|
const auto hr = device._device->CreateRasterizerState(&_description, &_rasterizerState);
|
|
|
|
if (FAILED(hr)) {
|
|
xna_error_apply(err, XnaErrorCode::INVALID_OPERATION);
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|