¿¬½ÀÀå(´Ù¹ö¸®°í °©´Ï´Ù...)-³²±æ ±ÛÀÌ ÀÖÀ¸¸é ¹Î°¡ÃÌ¿¡ ³²°ÜÁֽðí, ȸ¿ø °¡ÀÔÀ» ¹ÞÁö ¾Ê½À´Ï´Ù. |
---|
2019/06/28 (18:20) from 124.137.38.214' of 0' | Article Number : 1145 |
... | Access : 472 , Lines : 181 |
Milestone19_01_02 ; ¹®ÀÚ¿ Ç¥½Ã °³¼± |
---|
Download : _Milestone19_01_02.zip
(4625 Kbytes)
|
Milestone19_01_02 ; ¹®ÀÚ¿ Ç¥½Ã °³¼± 17_HFONT_VS2013_DIP(...)_Scale ~ 28_HFONT_VS2013_DIP(...)_String_Edit Milestone19_01 ; ¹®ÀÚ¿ Ç¥½Ã °³¼± 01_ID3DXFont_Rendering_VS2013 ~ 16_HFONT_VS2013_DIP(...)_RowXColumn //////////////////////////////////////////////////////////////////////////////// // Milestone19_01 // // ¼Ó¼º ÆäÀÌÁö > ±¸¼º ¼Ó¼º > ÀÏ¹Ý // ÇÁ·ÎÁ§Æ® ±âº»°ª - ¹®ÀÚÁýÇÕ; À¯´ÏÄÚµå & ¸ÖƼ¹ÙÀÌÆ® ¹®ÀÚ ÁýÇÕ »ç¿ë // //----------------------------------------------------------------------------- // 2019.06.27.(¸ñ) // // 28_HFONT_VS2013_DIP(...)_String_Edit // ; ±âÁ¸ À¯´ÏÄÚµå + ¸ÖƼ¹ÙÀÌÆ® ¹®ÀÚ ÁýÇÕ¿¡ ¸ÂÃá ÇÔ¼ö Ãß°¡ // VK_F8 ; Toggle1ByteDisplay(); - ¸ÖƼ¹ÙÀÌÆ®¸¦ À¯´ÏÄÚµå ó·³ 1byte¾¿ Ãâ·ÂÀ» À§ÇÑ Åä±Û // (°á°úÀûÀ¸·Î À߸øµÈ Ãâ·Â, Âü°í¿ëÀ¸·Î ±â·Ï) // / const unsigned char MODE_1BYTEDISPLAY = 0x80; // / HRESULT Render_HangulA_1Byte( ... ); // //----------------------------------------------------------------------------- // 2019.06.19.(¼ö) // // 22_HFONT_VS2013_DrawIndexedPrimitive(...)_TextOut // GetSize( ... ); ÇÔ¼ö »èÁ¦ // ; TextOut( ...); --> DrawText( ..., DT_CALCRECT); ·Î º¯°æ // //----------------------------------------------------------------------------- // 2019.06.18.(È) // // 20_HFONT_VS2013_GetWidth (cf. 10_HFONT_VS2013_GetWidth) // ; ÇÁ·ÎÁ§Æ® ±âº»°ª - ¹®ÀÚÁýÇÕ; À¯´ÏÄÚµå --> ¸ÖƼ¹ÙÀÌÆ® ¹®ÀÚ ÁýÇÕ »ç¿ëÀ¸·Î º¯°æ // //============================================================================= // ¼Ó¼º ÆäÀÌÁö > ±¸¼º ¼Ó¼º > ÀÏ¹Ý // ÇÁ·ÎÁ§Æ® ±âº»°ª - ¹®ÀÚÁýÇÕ; À¯´ÏÄÚµå ¹®ÀÚ ÁýÇÕ »ç¿ë // //----------------------------------------------------------------------------- // 2019.06.17.(¿ù) // // 18_HFONT_VS2013_DIP(...)_String_Edit // Toggle Å° ó¸® ; #define MODE_D3DXSPRITE 0x00000001 Á¤ÀǸ¦ // const unsigned char MODE_D3DXSPRITE = 0x1; ·Î º¯°æ // VK_F2 ; ToggleMode(); - MODE_D3DXSPRITE¿Í MODE_INDEXEDPRIMITIVE Àüȯ // VK_F3 ; ToggleAlphaBlendedable( ); - ±ÛÀÚ Ç¥½ÃÇÒ ¶§ ¹è°æ»öÀ» Ç¥½ÃÇÒÁö Åä±Û ó¸® // VK_F4 ; ToggleWireframe( ); - Wireframe Ç¥½Ã // VK_F5 ; ToggleFixedWidth(); - Ç¥½ÃµÇ´Â ¹®ÀÚ¿ ³ÐÀÌ°¡ ÃÖ´ëÄ¡º¸´Ù Ŭ ¶§ ÃÖ´ëÄ¡ ³ÐÀÌ¿¡ ¸ÂÃç¼ Ãà¼Ò // VK_F6 ; ToggleBoxing( ); - Ç¥½Ã ¿µ¿ª ¾È¿¡¼¸¸ Ç¥½Ã // VK_F7 ; ToggleAutoReturn( ); cf. GetSize_Spacing( ... ); // VK_PRIOR ; TogglePageUp(); - ¹®ÀÚ¿ ±³Ã¼ // VK_NEXT ; TogglePageDown(); - ¹®ÀÚ¿ ±³Ã¼ // //----------------------------------------------------------------------------- // 2019.05.30.(¸ñ) // // 17_HFONT_VS2013_DIP(...)_Scale // ±â´ÉÀûÀ¸·Î ÇÔ¼ö ¼¼ºÐÈ // BOOL PStrAdjust(WCHAR * pStrOut, WCHAR * pStrIn); - ÀÔ·Â ¹®ÀÚ¿ °¡°ø // BOOL PStrIsPrintable(WCHAR c); - Filtering // enum FLAG_TEXT::FLAG_TEXT_FIXED_WIDTH = 1 // VOID Render();¿¡¼ fScale °è»ê --> Render_Hangul( ..., (float)fScale); È£Ãâ // cf. ½ºÄÉÀÏ Àû¿ë ; ³ÐÀÌ¿Í Æø¿¡ µ¿ÀÏ°ªÀ» Àû¿ë // //============================================================================= // 2019.05.23.(¸ñ) // // 16_HFONT_VS2013_DIP(...)_RowXColumn // ; ¹®ÀÚ¿ ³», '\n' ÁÙ¹Ù²Þ Ã³¸® // static const int HORIZ_SPACING; Àû¿ë // ¸¶Áö¸· Á٠ǥ½ÃÇÒ ¶§, °æ¿ì¿¡ µû¶ó ¸ÇÀ§ÂÊ texture°¡ ÂïÈ÷´Â °æ¿ì ¹æÁö // g_pd3dDevice->SetSamplerState(0, D3DSAMP_ADDRESSU, D3DTADDRESS_CLAMP ); // g_pd3dDevice->SetSamplerState(0, D3DSAMP_ADDRESSV, D3DTADDRESS_CLAMP ); // ¹®ÀÚ¿ ±æÀÌ Á¦ÇÑ ; < MAX_STRING (in VOID Render();) // //----------------------------------------------------------------------------- // 2019.05.17.(±Ý) // // 15_HFONT_VS2013_DIP(...)_1row // ; DrawIndexedPrimitive( ... ); ÇÔ¼ö¸¦ »ç¿ëÇؼ, °¡º¯ ¹®ÀÚ¿ Ãâ·Â (by 1ÁÙ) // #define MODE_ALPHABLENDENABLE 0x00000100 Ãß°¡ // HRESULT Render_Hangul( WCHAR * Str, UINT &lenStr, SIZE &outSize ); ¿¡¼ // / °ø¹éÀÌ ÀÖÀ» ¶§, ¹®ÀÚ¿À» Ä«¿îÆ®ÇÏÁö ¾Ê´Â´Ù - º¯°æµÈ lenStr °ª ¸®ÅÏ // / static const int VERT_SPACING = 2; - Vertex ¼³Á¤ ÇÒ ¶§, ¹®ÀÚ »çÀÌ¿¡ °ø¹é Ãß°¡ // //----------------------------------------------------------------------------- // 2019.05.14.(È) // // 14_HFONT_VS2013_DIP(...)_2Str // ; DrawIndexedPrimitive( ... );¿¡¼ 2°³ÀÇ ¹®ÀÚ¿À» Ãâ·ÂÇϵµ·Ï ¼öÁ¤ // HRESULT InitVB(); Á¤Á¡, À妽º ¹öÆÛ ¼³Á¤ÇÏ°í // HRESULT Render_Hangul(WCHAR * Str); ¿¡¼ Á¤Á¡ Á¤º¸¸¦ ¼³Á¤ // ¾ËÆÄ Å×½ºÆ® »ö»óÀº CreateSolidBrush(0x00FF00FF);·Î ¼³Á¤ // BOOL GetSize( ... ); / HRESULT Render_Hangul( WCHAR * Str ); ÇÔ¼ö ¼öÁ¤ // //----------------------------------------------------------------------------- // 2019.05.11.(Åä) // // 13_HFONT_VS2013_DIP(...)_TextOut2 (DIP = DrawIndexedPrimitive) // ; Ç¥½ÃµÇ´Â ¹®ÀÚ¿ ¸¸Å¸¸, Ãâ·ÂÇϵµ·Ï ¹öÅؽº ¹öÆÛ ¼öÁ¤ // HRESULT Render_Hangul(); ¿¡¼ Vertex À§Ä¡¿Í UV Å©±â ¼³Á¤ // //----------------------------------------------------------------------------- // 2019.05.10.(±Ý) // // 12_HFONT_VS2013_DrawIndexedPrimitive(...)_TextOut // ; 2°³ ¸ðµå¿¡¼ µ¿ÀÏÇÑ °á°ú¸¦ ȸ鿡 Ãâ·Â // #define MODE_D3DXSPRITE 0x00000001 // #define MODE_INDEXEDPRIMITIVE 0x00000020 // Ãâ·ÂÀ» À§ÇÑ LPDIRECT3DTEXTURE9 g_pHTexture; Å©±â´Â °íÁ¤ // #define TEXTURE_WIDTH 256 // #define TEXTURE_HEIGHT 256 // //----------------------------------------------------------------------------- // 2019.05.09.(¸ñ) // // 11_HFONT_VS2013_DrawIndexedPrimitive(...) // (LPD3DXSPRITE) g_pTextSprite->Begin(NULL); ó¸® ¹æ½ÄÀ» DrawIndexedPrimitive(...); º¯°æ // VK_F1 ; Wireframe Ç¥½Ã Toggle // //============================================================================= // 2019.04.29.(¿ù) // 10_HFONT_VS2013_add_GetSize(...) // GetTextExtentPoint32W( ... ), GetTextMetrics(hDc, (TEXTMETRIC) &tm); ½Ã¿ë // //----------------------------------------------------------------------------- // 2019.04.25.(¸ñ) // 09_HFONT_VS2013_With_LPD3DXSPRITE // LPD3DXSPRITE::Draw( g_pHTexture, .... ); ÇÔ¼ö·Î ȸé Ãâ·Â // void Render_Hangul(); ¿¡¼ ƯÁ¤ DC¿¡ Ãâ·ÂÇÑ ÇѱÛ, g_pHTexture¿¡ Ãâ·Â // //----------------------------------------------------------------------------- // 2019.04.23.(È) // 08_TextOut_VS2013-Using Memory_DC // ; ¸Þ¸ð¸® DC¿¡ ¹®ÀÚ¸¦ Ãâ·ÂÇÏ°í, FilteringÀ¸·Î ƯÁ¤»öÀ» »ç¿ëÇÏ´Â ¹æ¹ý ±¸Çö // //----------------------------------------------------------------------------- // 2019.04.19.(±Ý) // 07_TextOut_VS2013_´õºí ¹öÆÛ¸µ ; // void drawByDC( HWND hWnd, HDC hdc ); / void drawByDBuffering( HWND hWnd, HDC hdc ); // timeGetTime(); ¸¦ »ç¿ëÇؼ FPS °íÁ¤ // //----------------------------------------------------------------------------- // 2019.04.18.(¸ñ) // 06_TextOut_VS2013 ; HFONT hFont·Î ÆùÆ® ¼³Á¤ - VK_SPACE ´·ÈÀ» ¶§ Ãâ·Â // void DrawHangul(HWND hWnd); Ãß°¡ // //----------------------------------------------------------------------------- // 2019.04.17.(¼ö) // 05_TextOut_VS2013 ; TextOut(hdc, 100, 100, L"Beautiful Korea", 15); ÇÔ¼ö »ùÇà // //¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ // 2019.04.15.(¿ù) 04_D3DFont_Rendering_VS2013-ÆùÆ®(»ç¿ëÀÚÆùÆ®) // ID3DXFont_Rendering_VS2013_04 ; ÆùÆ® (»ç¿ëÀÚ ÆùÆ®) // class CD3DFont { ... }; »ç¿ë // CD3DFont Ŭ·¡½º ¿¹Á¦´Â DX8¿¡¼ »ç¿ëµÈ ¹æ¹ýÀ¸·Î ¿µ¹®¸¸ Ç¥½Ã // //¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ // 2019.04.10.(¼ö) 03_ID3DXFont_Rendering_VS2013-ÆùƮũ±â // ID3DXFont_Rendering_VS2013_03 ; ÆùÆ® Å©±â ¼³Á¤ // D3DXCreateFont( g_pd3dDevice, nHeight, ... ); // ÆùÆ® Point Å©±â(pt) ¢¡ ³í¸® Å©±â(-)·Î º¯È¯ // //¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ // 2019.04.09.(È) 02_ID3DXFont_Rendering_VS2013-¹®ÀÚÃâ·Â // ID3DXFont_Rendering_VS2013_02 ; ¹®ÀÚÃâ·Â - DrawText( ... ); // LPD3DXSPRITE g_pTextSprite = NULL; // LPD3DXFONT pFont = NULL; // //¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ¤Ñ // 2019.04.08.(¿ù) // 01_ID3DXFont_Rendering_VS2013 // //============================================================================= // File: CreateDevice.cpp // ... // Copyright (c) Microsoft Corporation. All rights reserved. // //////////////////////////////////////////////////////////////////////////////// |