45 const FontEntry fonts[] = {
46 { L
"Fonts\\euroswh.ttf",
"euroswh.ttf" },
47 { L
"Fonts\\DejaVuSansMono.ttf",
"DejaVuSansMono.ttf" },
48 { L
"Fonts\\lhandw.ttf",
"lhandw.ttf" },
49 { L
"Fonts\\ARIALN.ttf",
"ARIALN.ttf" }
52 for (
const auto& font : fonts)
54 if (AddFontResourceEx(font.path, FR_PRIVATE,
nullptr) == 0)
57 swprintf_s(box, L
"Error loading %hs in Fonts\\...", font.name);
58 MessageBoxW(
nullptr, box, L
"Error loading font!", MB_ICONERROR | MB_OK);
61 sprintf_s(logmsg,
sizeof logmsg,
"Error loading \"%s\" in Fonts\\...", font.name);
69 logger->
Log(
"Removing font resources...");
71 const wchar_t* fonts[] = {
72 L
"Fonts\\euroswh.ttf",
73 L
"Fonts\\DejaVuSansMono.ttf",
78 for (
const auto& font : fonts)
79 RemoveFontResourceEx(font, FR_PRIVATE,
nullptr);
82 RemoveFontResourceEx(L
"Fonts\\cour.ttf", FR_PRIVATE,
nullptr);
83 RemoveFontResourceEx(L
"Fonts\\LicensePlate.ttf", FR_PRIVATE,
nullptr);
84 RemoveFontResourceEx(L
"Fonts\\pala.ttf", FR_PRIVATE,
nullptr);
85 RemoveFontResourceEx(L
"Fonts\\rcaf6-GIMP.ttf", FR_PRIVATE,
nullptr);
158 for (
short t = 0; t < 3; t++)
161 sprintf_s(msg,
sizeof msg,
"m_pddsLightningAndBackground[%i]", t);
174 sprintf_s(msg,
sizeof msg,
"m_pddsAvatar[%i]", t);
222 mvp.
MinZ = 0.0001f; mvp.
MaxZ = 0.01f;
265 bool firstone =
true;
274 if (tempcomponent.
type == 100 ||
275 tempcomponent.
type == 101 ||
276 tempcomponent.
type == 103 ||
277 tempcomponent.
type == 104)
280 matWorld = matrixBase * matWorld;
290 matWorld = matTemp * matWorld;
292 matWorld = matWorld * matTemp;
295 (tempcomponent.
type == 100 && tempcomponent.
attachto == 250) ||
308 float powage = powf(
gui->
age, 2.0f);
309 tempvec4.x =
gui->
haircolor.
r * (1.0f - powage) + 1.0f * powage;
310 tempvec4.y =
gui->
haircolor.
g * (1.0f - powage) + 1.0f * powage;
311 tempvec4.z =
gui->
haircolor.
b * (1.0f - powage) + 1.0f * powage;
372 logger->
Log(
"Native D3D11 scene materials initialized from embedded SM5 shaders");
#define V_RETURN(expression)
#define SAFE_RELEASE(value)
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
SCRIPT_CONTROL SCRIPT_STATE const void DWORD
void AddTrackedResource(const char *name, Rendering::ResourcePool pool=Rendering::ResourcePool::Managed)
void UpdateTrackedResource(const char *name, int status)
std::unique_ptr< Logger > logger
void RemoveFontsFromSystem(void) const
Rendering::RenderTexture * m_pddsCloudBaseMapAndNetwork
void AddFontsToSystem(void) const
HRESULT OnResetDevice(void) const
HRESULT LoadShaderFile(void)
void OnDestroyDevice(void)
float immigrationPanAngle
void DrawImmigration(Rendering::RenderDevice *pd3dDevice, float fElapsedTime)
Rendering::RenderMaterial * g_pEffect
Rendering::RenderTexture * m_pddsAvatar[humantextureC]
Rendering::RenderTexture * m_pddsLightningAndBackground[3]
Rendering::RenderTexture * m_pddsGUIInterlace
s_polygon_object tempobject
void DrawErrorBoxes(bool draw=true)
RiseMath::Color haircolor
void DrawRXTXLights(Rendering::RenderTexture **tex) const
Rendering::ImageBuffer * pBuffer
Rendering::RenderSprite * g_pTextSprite
void Log(const char *msg, Level level=Info, int errorCode=0)
void AddToCallStack(const char *msg)
s_mesh_component GetComponent(short i) const
unsigned short GetComponents() const
HRESULT DrawPrimitive(Primitive type, UINT first, UINT count)
HRESULT GetViewport(Viewport *value) const
HRESULT SetStreamSource(UINT stream, RenderBuffer *buffer, UINT offset, UINT stride)
HRESULT SetRenderState(DWORD state, DWORD value)
HRESULT SetFVF(DWORD value)
HRESULT SetViewport(const Viewport *value)
HRESULT SetTransform(DWORD slot, const RiseMath::Matrix *value)
HRESULT Clear(DWORD count, const RECT *rectangles, DWORD flags, PackedColor color, float depth, DWORD stencil)
HRESULT SetTextureStageState(DWORD stage, DWORD state, DWORD value)
HRESULT SetTexture(DWORD stage, RenderTexture *texture)
HRESULT SetSamplerState(DWORD sampler, DWORD state, DWORD value)
HRESULT SetVector(const char *name, const RiseMath::Vector4 *value)
HRESULT Begin(UINT *count, DWORD flags)
HRESULT BeginPass(UINT pass)
HRESULT SetTexture(const char *name, RenderTexture *value)
HRESULT SetMatrix(const char *name, const RiseMath::Matrix *value)
HRESULT Begin(DWORD flags)
HRESULT SetTransform(const RiseMath::Matrix *value)
HRESULT Draw(RenderTexture *image, const RECT *rectangle, const RiseMath::Vector3 *center, const RiseMath::Vector3 *position, PackedColor color)
RiseRadioButton * GetRadioButton(int ID)
HRESULT OnRender(float fElapsedTime)
RiseSlider * GetSlider(int ID)
constexpr uint32_t INVSRCALPHA
constexpr uint32_t SRCALPHA
constexpr uint32_t TARGET
constexpr uint32_t ZBUFFER
constexpr uint32_t ALWAYS
constexpr uint32_t SRCBLEND
constexpr uint32_t CULLMODE
constexpr uint32_t ALPHABLENDENABLE
constexpr uint32_t DESTBLEND
constexpr uint32_t TEXTUREFACTOR
constexpr uint32_t LIGHTING
constexpr uint32_t ADDRESSV
constexpr DWORD AlphaBlend
constexpr uint32_t TFACTOR
constexpr uint32_t TEXTURE
constexpr uint32_t MODULATE
constexpr uint32_t COLOROP
constexpr uint32_t COLORARG1
constexpr uint32_t COLORARG2
RenderDevice * ClientRenderer()
Matrix * MatrixLookAtRH(Matrix *out, const Vector3 *eye, const Vector3 *at, const Vector3 *up)
Matrix * MatrixRotationX(Matrix *out, float value)
Matrix * MatrixRotationY(Matrix *out, float value)
Matrix * MatrixPerspectiveFovRH(Matrix *out, float fov, float aspect, float nearZ, float farZ)
Matrix * MatrixScaling(Matrix *out, float x, float y, float z)
Matrix * MatrixTranslation(Matrix *out, float x, float y, float z)
RiseMath::Vector3 nominalxyz
Rendering::RenderBuffer * VB