1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/framework/platform/rasterizerstate-dx.cpp
2024-04-13 11:45:45 -03:00

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;
}
}