Skip to content

Yih Horng

Programmer and Gamer

分類:Daily log

Brief Summary of GDQuest 3D Mannequin Project w/o Camera Rig 隨手寫的讀書報告

Structure GDQuest 的 Mannequin Project 裏,在不談 Camera Rig 的情況下,只有三個主要的 Sc[…]

Continue reading …

Get precise text width and height for IDWriteTextLayout Combine GetOverhangMetrics() and GetMetrics()

單用 GetMetrics() 所取得的物件高度 (metrics.height),在畫小寫的 y 或類似的字元時會發生誤差。而且字元上方也[…]

Continue reading …

Direct2D, draw partial geometry how to implement scrolling area with text and geometry

[2021/02/26 Update] These is a much easier way to handle this kind of […]

Continue reading …

Draw text using DirectWrite in Game UI IDWriteTextFormat / IDWriteTextLayout / IDWriteTextRenderer

這篇筆記是紀錄用 DirectWrite 在遊戲或一般 application UI 中寫文字會用到的東西。 IDWriteFactory […]

Continue reading …

IWICBitmap from IStream (windows imaging component) Why CreateDecoderFromStream returns WINCODEC_ERR_COMPONENT_NOT_FOUND?

這問題卡了我整整一天半,差點要開一個 Daily WTF catalog 來放這篇文章了。 問題很簡單,我要開一個 Direct2D 的 B[…]

Continue reading …

Win32 Font Study load font from external file / get font metrix / draw text in custom byte array

Change the font, measure the text string area and draw the text Hint: […]

Continue reading …

Win32 Titlebar How to get the real drawable window size / Remove the Titlebar and Border

我們在 WinProc onPaint() 事件中,可以用下面的方法取得目前 Window Size // get window’s inf[…]

Continue reading …

Login Server for Massive User Sinlge login server with multiple game servers

Login Server / Game Server 要寫一個 Login Server 要考慮。 Player 在 Login 時,和 L[…]

Continue reading …

Implement openssl server in edged triggered (ET) mode Use SSL_accept / SSL_write / SSL_read with non-blocking socket

SSL_accept / SSL_read 在 EPOLL 告知 server fd 有 EPOLLIN 事件時,代表有有一個或多個新的連線[…]

Continue reading …
  • Github
  • Linkedin
  • Email
  • Facebook

分類

  • C/C++ Tutorial
  • Computer Graphics
  • Daily log
  • Direct2D
  • Godot
  • Programming
  • Shader
  • Uncategorized
  • win32 api
Proudly powered by WordPress | Theme: Oblique by Themeisle.
  • Github
  • Linkedin
  • Email
  • Facebook