[raylib] Window Handle 윈도우 핸들
SDL, raylib 2025. 5. 4. 11:35 |반응형
raylib에서 윈도우 핸들을 구해 보자.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#define _CRT_SECURE_NO_WARNINGS
#include "raylib.h"
#include <stdio.h>
int main(void)
{
InitWindow(640, 480, "raylib example");
void* p = GetWindowHandle();
printf("Window Handle: %p\n", p);
//printf("%016llX\n", (long long)p);
char str[17];
sprintf(str, "%016llX", (long long)p);
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText(str, 220, 230, 20, GRAY);
EndDrawing();
}
CloseWindow();
return 0;
}
|
소스를 입력하고 빌드한다.
하지만 raylib는 child window를 만들 수 없다.
※ 참고
반응형
'SDL, raylib' 카테고리의 다른 글
[SDL3] Parent Window Child Window Input Separation 부모 자식 윈도우 입력 구분하기 (0) | 2025.06.06 |
---|---|
[SDL3] Display Information 디스플레이 정보 가져오기 (0) | 2025.06.02 |
[raylib] Particle 파티클 (Snow) (0) | 2025.05.04 |
[raylib] Transparent Window(Window Flags) (0) | 2025.05.03 |
[raylib] raylib with opencv (0) | 2025.05.03 |