Iray SDK API nvidia_logo_transpbg.gif Up
icanvas_opengl.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_ICANVAS_OPENGL_H
8#define MI_NEURAYLIB_ICANVAS_OPENGL_H
9
11
12namespace mi {
13
14namespace neuraylib {
15
32class ICanvas_opengl : public
33 mi::base::Interface_declare<0x44e76f87,0x36ba,0x4f61,0x90,0x8d,0x35,0x9e,0x15,0x49,0x70,0x01,
34 neuraylib::ICanvas_base>
35{
36public:
46 virtual Sint32 bind_opengl_context() const = 0;
47
57 virtual Sint32 release_opengl_context() const = 0;
58
64 virtual Uint32 get_texture_id() const = 0;
65};
66 // end group mi_neuray_rendering
68
69} // namespace neuraylib
70
71} // namespace mi
72
73#endif // MI_NEURAYLIB_ICANVAS_OPENGL_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
Abstract interface for a canvas that represents an OpenGL buffer.
Definition: icanvas_opengl.h:35
virtual Uint32 get_texture_id() const =0
Returns the texture ID to be used by the render mode.
virtual Sint32 bind_opengl_context() const =0
Binds the OpenGL context to be used by the render mode to the calling thread.
virtual Sint32 release_opengl_context() const =0
Releases the OpenGL context to be used by the render mode from the calling thread.
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
signed int Sint32
32-bit signed integer.
Definition: types.h:46
Abstract interface for canvases.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: neuraylib.h:179