Blender V5.0
GHOST_ContextNone.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "GHOST_Context.hh"
14
16 public:
17 GHOST_ContextNone(const GHOST_ContextParams &context_params) : GHOST_Context(context_params) {}
18
21 {
22 return GHOST_kSuccess;
23 }
24
30
36
42
48
54
60
65 GHOST_TSuccess setSwapInterval(int interval) override;
66
72 GHOST_TSuccess getSwapInterval(int &interval_out) override;
73
74 private:
75 int swap_interval_ = 1;
76};
GHOST_TSuccess
Definition GHOST_Types.h:57
@ GHOST_kSuccess
Definition GHOST_Types.h:57
GHOST_ContextNone(const GHOST_ContextParams &context_params)
GHOST_TSuccess releaseNativeHandles() override
GHOST_TSuccess swapBufferRelease() override
GHOST_TSuccess updateDrawingContext() override
GHOST_TSuccess setSwapInterval(int interval) override
GHOST_TSuccess releaseDrawingContext() override
GHOST_TSuccess activateDrawingContext() override
GHOST_TSuccess swapBufferAcquire() override
GHOST_TSuccess getSwapInterval(int &interval_out) override
GHOST_TSuccess initializeDrawingContext() override
GHOST_Context(const GHOST_ContextParams &context_params)