Cumulia Illustrator Rendering Engine v1.0.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
rendercontext.h
1//##################################################################################################
2//
3// Copyright (c) 2024 Beijing Qiongqi Tech Co.,Ltd. All rights reserved.
4
5// This source code is confidential and proprietary to Beijing Qiongqi Tech Co.,Ltd(The Holder).
6// Any unauthorized use, copying, modification, or distribution of the code is strictly prohibited.
7// Any user shall obtain authorizaition from the Holder before modifying the source code. And the user shall not
8// sublicense, sell, distribute, or transfer the source code, whether in original or modified form, to any third party
9// without the prior written consent of the Holder.
10
11// This copyright notice and permission grant shall be included in all copies or substantial portions of the source code.
12
13// Author Cumulia Illustrator
14// Date 2024-05-01
15// Version V1.0.0
16//##################################################################################################
17
18#pragma once
19
20namespace cil
21{
24 {
25 public:
28 virtual ~RenderContext();
30 void initialize();
32 void finalize();
35 bool isValid() const;
40 bool isCurrent() const;
44 };
45}
The RenderContext Class provides a set of interfaces for managing the lifycycle and state of an OpenG...
Definition rendercontext.h:24
RenderContext()
Constructs a rendering context object.
void initialize()
Initializes the rendering context.
bool isCurrent() const
Check if the current context is active.
void finalize()
Finalize the rendering context.
virtual ~RenderContext()
bool isValid() const
Check if the rendering context is valid.
void makeCurrent()
Make the current context active.
static RenderContext * current()
Gets the current active rendering context.
Definition decal.h:23