DEKI/ENGINE 문서
매뉴얼 API 참조
deki-sdl3-integration 0.40.1
Deki 패키지 레퍼런스
deki-sdl3-integration

SDL3(3.2.8) 기반의 데스크톱 디스플레이, 입력, 파일 시스템.

저장소: github.com/dekiengine/deki-sdl3-integration · 최신 릴리스: 0.40.0 · 엔진 0.40.0 이상 필요 · 의존: deki-input

DekiEditor --packages-add deki-sdl3-integration <project> 또는 패키지 관리자로 설치합니다. 엔진 자체의 컴포넌트와 C++ API는 Deki 문서에 있습니다.

에디터에는 SDL3 Integration(으)로 표시됩니다.

컴포넌트

컴포넌트 카테고리 설명
SDL3DisplaySetup SDL3 게임이 렌더링할 데스크톱 창을 엽니다.
SDL3InputSetup SDL3 데스크톱의 키보드, 마우스, 게임패드 입력을 엔진에 전달합니다.

기능 플래그

빌드에서 뺄 수 있는 부분입니다. define이 있는 기능은 그 define으로 켜고 끄며, 나머지는 컴포넌트와 함께 제거됩니다.

기능 define 기본값
Display — 켜짐
Input — 켜짐

컴포넌트 레퍼런스

SDL3DisplaySetup

게임이 렌더링할 데스크톱 창을 엽니다.

인스펙터 이름: SDL3 디스플레이 설정 · 카테고리: SDL3 · 유형: DekiSdl3::SDL3DisplaySetup

속성 유형 기본값 제약 설명
windowScale int32 2 1~8 화면 픽셀 하나를 창 픽셀 몇 개로 표시할지 정합니다. 화면 크기는 타겟 플랫폼의 크기를 따릅니다.
presentThroughOpenGL bool true 플랫폼에 OpenGL이 있으면 프레임을 OpenGL로 표시합니다. 프레임은 GPU에서 구성되고, 3D는 다시 읽어 오지 않고 바로 그 안에 그려집니다. 2D를 레이어로 합성할 수 있도록 프레임 버퍼는 플랫폼의 화면 포맷과 상관없이 RGB565A8이 됩니다. 끄거나 OpenGL이 없으면 SDL의 GPU API가 프레임 버퍼를 그대로 표시합니다.
draw2DOnGpu bool true OpenGL로 표시할 때 2D도 GPU에서 그립니다. 스프라이트, 텍스트, 도형이 프레임에 바로 들어가고 CPU는 픽셀을 그리지 않습니다. 끄면 기기에서처럼 CPU가 2D를 그리고 프레임 버퍼를 업로드합니다. 켜면 프레임 버퍼에는 코드가 직접 쓴 것만 들어 있으므로, 그 스크린샷에는 2D가 빠집니다.

SDL3InputSetup

데스크톱의 키보드, 마우스, 게임패드 입력을 엔진에 전달합니다.

인스펙터 이름: SDL3 입력 설정 · 카테고리: SDL3 · 유형: DekiSdl3::SDL3InputSetup

속성 유형 기본값 설명
enableKeyboard bool true 키보드 입력을 활성화합니다
enableMouse bool true 마우스/포인터 입력을 활성화합니다
enableGamepad bool true 게임패드를 휴대용 기기의 버튼이 보내는 것과 같은 키로 읽습니다. D-pad와 왼쪽 스틱은 방향키, A와 Start는 Enter, B는 Esc, X는 Space, Y는 Tab, Back은 Backspace, LB와 RB는 Q와 E, LT와 RT는 Z와 C입니다. 이벤트는 입력 소스 "Gamepad"에서 옵니다.

변경 내역

변경 내역은 영어로 되어 있습니다.

0.40.0

Changed

  • minEngine 0.40.0: built against engine 0.40.0. A build of this package from before does not load and is rebuilt.

Added

  • A gamepad's sticks are also read as sticks (DekiInput::GetStick): the one pushed furthest on any connected pad.
  • Gamepads. SDL3InputSetup reads every connected pad as keys, the same keys a handheld's buttons send: the D-pad and left stick are the arrows, A and Start Enter, B Esc, X Space, Y Tab, Back Backspace, LB and RB Q and E, LT and RT Z and C. Its events come from the source "Gamepad". Enable Gamepad turns it off.

0.30.0

Changed

  • minEngine 0.30.0: built against engine 0.30.0. A build of this package from before does not load and is rebuilt.

Declares the capabilities it uses

  • package.json has "capabilityDefines": ["opengl"]: its GL presenter tests DEKI_CAPABILITY_OPENGL. The editor reads them instead of knowing opengl itself; needs the editor from this release.

Added

  • SDL3GLDisplay: where the platform provides opengl, the window presents through OpenGL and deki-rendering's GLPresenter, so the frame is built on the GPU and deki-3d's meshes draw straight into it. SDL3DisplaySetup's presentThroughOpenGL (on by default) chooses it; SDL's GPU API remains the fallback.
  • SDL3DisplaySetup.draw2DOnGpu (on by default): presenting through OpenGL, the 2D is drawn on the GPU too, by the presenter, and the CPU draws no pixels. The frame buffer then holds only what code writes into it directly, so a screenshot of it misses the 2D; turn it off for that, or to see the 565 rounding a device's screen shows.

이전 릴리스: CHANGELOG.md


패키지의 리플렉션 데이터에서 생성했습니다(엔진 0.40.1). 속성 이름은 씬 파일에서 쓰는 키입니다. 이름을 바꿔도 별칭이 유지됩니다(호환성).