본문 바로가기 메뉴 바로가기

다낙

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

다낙

검색하기 폼
  • 분류 전체보기 (94)
    • ComComComCom (73)
      • Common (6)
      • STL (1)
      • C,C++ (9)
      • API (10)
      • DX .. D3D (33)
      • C# (1)
      • StructureDesign (1)
      • Shader HLSL (2)
      • Unity (9)
    • mmmmmmmmmmmmmmath study (4)
    • development journal (0)
    • Life (4)
      • 뭐했 (2)
      • 살꺼당 샀댱 (2)
    • 경제 (3)
    • 소스,자료 (1)
      • 폰트 (1)
    • Photoshop (2)
    • 티스토리 관련 (2)
    • 추후분류 (2)
  • 방명록

ComComComCom (73)
읽고 싶지 않은 문자가 있을 때

sscanf_s(temp, "%*s %f %f %f", &a &b, &c); %s 사이에 있는 * 표시가 읽지않겠다는 표시

ComComComCom/C,C++ 2017. 6. 23. 16:37
DirectWrite

People communicate with text all the time in their daily lives. It is the primary way for people to consume an increasing volume of information. In the past, it used to be through printed content, primarily documents, newspapers, books, and so on. Increasingly, it is online content on their Windows PC. A typical Windows user spends a lot of time reading from their computer screen. They might be ..

ComComComCom/DX .. D3D 2017. 6. 21. 01:51
글꼴 3D mesh 만들어서 출력할 수 있다고 하네 D3DXCreateText

class cText2 { LPD3DXMESH m_mesh; public: cText2(); ~cText2(); void Setup(); void Draw(); }; cText2::cText2() { } cText2::~cText2() { //사용후엔 해제 필수! SAFE_RELEASE(m_mesh); } void cText2::Setup() { HDC hdc=GetDC(g_hWnd); //HDC에서 글꼴을 설정하고 //HFONT font, oldFont; LOGFONT font; ZeroMemory(&font, sizeof(LOGFONT)); font.lfHeight = 100.f; font.lfWidth = 30.f; HFONT hFont; HFONT hOldFont; hFont = CreateFon..

ComComComCom/DX .. D3D 2017. 6. 21. 00:24
문자출력 ID3DXFont 인터페이스

ID3DXFont 인터페이스 이용하기 ID3DXFont 인터페이스는 D3D 애플리케이션에서 텍스트를 그릴 때 사용한다. 이 인터페이스는 내부적으로 GDI를 이용하기 때문에 약간의 성능저하가 따르지만 , GDI의 도움으로 복잡한 글꼴이나 포맷팅을 이용할 수 있다. //아래 함수를 이용해 폰트를 생성 한뒤( 구조체 정보는 아래에) D3DXCreateFontIndirect( _In_ LPDIRECT3DDEVICE9 pDevice, _In_ const D3DXFONT_DESC *pDesc, _Out_ LPD3DXFONT *ppFont ); Creates a font object indirectly for both a device and a font. //아래함수로 그린다.INT DrawText( [in] LPD..

ComComComCom/DX .. D3D 2017. 6. 20. 23:38
[function] rand()/ rand_s() 난수생성, 난수 , 랜덤

난수(Random Number) 특정한 배열 순서나 규칙을 가지지 않는 연속적인 임의의 수를 말한다 c언어에서는 시스템 라이브러리에서 난수를 만드는 함수를 제공한다 ​ r​and 함수는 c++ c++에 내장된 난수표에 있는 수를 가져올 뿐이기 때문에 항상 일정한 수를 출력한다. 난수표에서 시드와 횟수에 따라 수를 불러오는 함수이다. 항상 같은 수만 출력되면 난수의 의미가 없어지기 때문에 srand(시드의번호); 로 난수표의 시드를 바꾸어주어야 한다. ​ srand(1) 로 했을 경우 그냥 rand() 함수만 썼을 때와 같은 수가 나옴 즉 그냥 rand 함수만 쓰게되면 난수표의 시드(seed)가 1인것을 알 수 있다. srand(2) 로 하면 값변한다 -> 2번 시드를 불러오기 때문 c++에서 시드의 범위..

ComComComCom/C,C++ 2017. 6. 20. 13:32
이전 1 ··· 6 7 8 9 10 11 12 ··· 15 다음
이전 다음

Blog is powered by Tistory / Designed by Tistory

티스토리툴바