JUCE
|
Classes | |
struct | Locker |
struct | MouseForwardingNSOpenGLViewClass |
Public Member Functions | |
NativeContext (Component &comp, const OpenGLPixelFormat &, void *, bool, OpenGLVersion) | |
~NativeContext () | |
bool | initialiseOnRenderThread (OpenGLContext &aContext) |
void | shutdownOnRenderThread () |
bool | makeActive () const noexcept |
bool | isActive () const noexcept |
void | swapBuffers () const noexcept |
bool | setSwapInterval (const int) |
int | getSwapInterval () const |
bool | createdOk () const noexcept |
void * | getRawContext () const noexcept |
GLuint | getFrameBufferID () const noexcept |
void | updateWindowPosition (Rectangle< int > bounds) |
void | dispatchDraw (jobject canvas) |
void | surfaceChanged (jobject holder, int format, int width, int height) |
void | surfaceCreated (jobject holder) |
void | surfaceDestroyed (jobject holder) |
NativeContext (Component &c, const OpenGLPixelFormat &pixFormat, void *contextToShare, bool multisampling, OpenGLVersion version) | |
~NativeContext () | |
bool | initialiseOnRenderThread (OpenGLContext &) |
void | shutdownOnRenderThread () |
bool | createdOk () const noexcept |
void * | getRawContext () const noexcept |
GLuint | getFrameBufferID () const noexcept |
bool | makeActive () const noexcept |
bool | isActive () const noexcept |
void | swapBuffers () |
void | updateWindowPosition (Rectangle< int > bounds) |
bool | setSwapInterval (int numFramesPerSwap) noexcept |
int | getSwapInterval () const noexcept |
NativeContext (Component &comp, const OpenGLPixelFormat &cPixelFormat, void *shareContext, bool, OpenGLVersion) | |
~NativeContext () | |
bool | initialiseOnRenderThread (OpenGLContext &c) |
void | shutdownOnRenderThread () |
bool | makeActive () const noexcept |
bool | isActive () const noexcept |
void | swapBuffers () |
void | updateWindowPosition (Rectangle< int > newBounds) |
bool | setSwapInterval (int numFramesPerSwap) |
int | getSwapInterval () const |
bool | createdOk () const noexcept |
void * | getRawContext () const noexcept |
GLuint | getFrameBufferID () const noexcept |
void | triggerRepaint () |
NativeContext (Component &component, const OpenGLPixelFormat &pixFormat, void *contextToShare, bool shouldUseMultisampling, OpenGLVersion version) | |
~NativeContext () | |
bool | initialiseOnRenderThread (OpenGLContext &) |
void | shutdownOnRenderThread () |
bool | createdOk () const noexcept |
void * | getRawContext () const noexcept |
GLuint | getFrameBufferID () const noexcept |
bool | makeActive () const noexcept |
bool | isActive () const noexcept |
void | swapBuffers () |
void | updateWindowPosition (Rectangle< int >) |
bool | setSwapInterval (int numFramesPerSwap) |
int | getSwapInterval () const |
NativeContext (Component &component, const OpenGLPixelFormat &pixelFormat, void *contextToShareWith, bool, OpenGLVersion) | |
~NativeContext () | |
bool | initialiseOnRenderThread (OpenGLContext &c) |
void | shutdownOnRenderThread () |
bool | makeActive () const noexcept |
bool | isActive () const noexcept |
void | swapBuffers () const noexcept |
bool | setSwapInterval (int numFramesPerSwap) |
int | getSwapInterval () const |
void | updateWindowPosition (Rectangle< int > bounds) |
bool | createdOk () const noexcept |
void * | getRawContext () const noexcept |
unsigned int | getFrameBufferID () const noexcept |
void | triggerRepaint () |
Static Public Member Functions | |
static void | deactivateCurrentContext () |
static void | deactivateCurrentContext () |
static void | deactivateCurrentContext () |
static void | createAttribs (NSOpenGLPixelFormatAttribute *attribs, OpenGLVersion version, const OpenGLPixelFormat &pixFormat, bool shouldUseMultisampling) |
static void | deactivateCurrentContext () |
static void | deactivateCurrentContext () |
Public Attributes | |
Component & | component |
NSOpenGLContext * | renderContext |
NSOpenGLView * | view |
ReferenceCountedObjectPtr< ReferenceCountedObject > | viewAttachment |
double | lastSwapTime |
int | minSwapTimeMs |
int | underrunCounter |
juce::OpenGLContext::NativeContext::NativeContext | ( | Component & | comp, |
const OpenGLPixelFormat & | , | ||
void * | , | ||
bool | , | ||
OpenGLVersion | |||
) |
References juce::AndroidSystem::activity, juce::android, component, juce::GlobalRef::get(), juce::Component::getDesktopScaleFactor(), juce::getEnv(), juce::Component::getLocalArea(), juce::Component::getLocalBounds(), juce::ComponentPeer::getNativeHandle(), juce::Component::getPeer(), juce::Component::getTopLevelComponent(), and updateWindowPosition().
juce::OpenGLContext::NativeContext::~NativeContext | ( | ) |
References juce::GlobalRef::get(), and juce::getEnv().
juce::OpenGLContext::NativeContext::NativeContext | ( | Component & | c, |
const OpenGLPixelFormat & | pixFormat, | ||
void * | contextToShare, | ||
bool | multisampling, | ||
OpenGLVersion | version | ||
) |
References jassertfalse, and JUCE_AUTORELEASEPOOL.
juce::OpenGLContext::NativeContext::~NativeContext | ( | ) |
juce::OpenGLContext::NativeContext::NativeContext | ( | Component & | comp, |
const OpenGLPixelFormat & | cPixelFormat, | ||
void * | shareContext, | ||
bool | , | ||
OpenGLVersion | |||
) |
References juce::OpenGLPixelFormat::accumulationBufferAlphaBits, juce::OpenGLPixelFormat::accumulationBufferBlueBits, juce::OpenGLPixelFormat::accumulationBufferGreenBits, juce::OpenGLPixelFormat::accumulationBufferRedBits, juce::OpenGLPixelFormat::alphaBits, juce::OpenGLPixelFormat::blueBits, component, juce::OpenGLPixelFormat::depthBufferBits, juce::Component::getLocalArea(), juce::Component::getLocalBounds(), juce::Component::getPeer(), juce::Component::getTopLevelComponent(), juce::OpenGLPixelFormat::greenBits, jassert, juce::jmax(), juce::juce_LinuxAddRepaintListener(), juce::juce_LinuxScaledToPhysicalBounds(), juce::OpenGLPixelFormat::redBits, and juce::OpenGLPixelFormat::stencilBufferBits.
juce::OpenGLContext::NativeContext::~NativeContext | ( | ) |
References component, juce::Component::getPeer(), and juce::juce_LinuxRemoveRepaintListener().
juce::OpenGLContext::NativeContext::NativeContext | ( | Component & | component, |
const OpenGLPixelFormat & | pixFormat, | ||
void * | contextToShare, | ||
bool | shouldUseMultisampling, | ||
OpenGLVersion | version | ||
) |
juce::OpenGLContext::NativeContext::~NativeContext | ( | ) |
juce::OpenGLContext::NativeContext::NativeContext | ( | Component & | component, |
const OpenGLPixelFormat & | pixelFormat, | ||
void * | contextToShareWith, | ||
bool | , | ||
OpenGLVersion | |||
) |
juce::OpenGLContext::NativeContext::~NativeContext | ( | ) |
bool juce::OpenGLContext::NativeContext::initialiseOnRenderThread | ( | OpenGLContext & | aContext | ) |
References juce::GlobalRef::get(), juce::getEnv(), jassert, jassertfalse, and juce::Thread::sleep().
void juce::OpenGLContext::NativeContext::shutdownOnRenderThread | ( | ) |
References jassert.
|
noexcept |
Referenced by NativeContext().
|
noexcept |
Referenced by getSwapInterval(), makeActive(), and setSwapInterval().
|
static |
Referenced by NativeContext(), and shutdownOnRenderThread().
|
noexcept |
bool juce::OpenGLContext::NativeContext::setSwapInterval | ( | const int | ) |
int juce::OpenGLContext::NativeContext::getSwapInterval | ( | ) | const |
|
noexcept |
|
noexcept |
References juce::GlobalRef::get().
Referenced by createdOk().
|
noexcept |
void juce::OpenGLContext::NativeContext::updateWindowPosition | ( | Rectangle< int > | bounds | ) |
References juce::GlobalRef::get(), juce::Rectangle< ValueType >::getBottom(), juce::Desktop::getDisplays(), juce::getEnv(), juce::Desktop::getInstance(), juce::Desktop::Displays::getMainDisplay(), juce::Rectangle< ValueType >::getRight(), juce::Rectangle< ValueType >::getX(), juce::Rectangle< ValueType >::getY(), and juce::Desktop::Displays::Display::scale.
Referenced by NativeContext().
void juce::OpenGLContext::NativeContext::dispatchDraw | ( | jobject | canvas | ) |
References juce::ignoreUnused(), and juce::OpenGLContext::triggerRepaint().
Referenced by juce::JUCE_JNI_CALLBACK().
void juce::OpenGLContext::NativeContext::surfaceChanged | ( | jobject | holder, |
int | format, | ||
int | width, | ||
int | height | ||
) |
References juce::ignoreUnused(), surfaceCreated(), and surfaceDestroyed().
Referenced by juce::JUCE_JNI_CALLBACK().
void juce::OpenGLContext::NativeContext::surfaceCreated | ( | jobject | holder | ) |
Referenced by juce::JUCE_JNI_CALLBACK(), and surfaceChanged().
void juce::OpenGLContext::NativeContext::surfaceDestroyed | ( | jobject | holder | ) |
Referenced by juce::JUCE_JNI_CALLBACK(), and surfaceChanged().
bool juce::OpenGLContext::NativeContext::initialiseOnRenderThread | ( | OpenGLContext & | ) |
void juce::OpenGLContext::NativeContext::shutdownOnRenderThread | ( | ) |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
References juce::GL_FRAMEBUFFER.
|
noexcept |
|
static |
void juce::OpenGLContext::NativeContext::swapBuffers | ( | ) |
References juce::GL_RENDERBUFFER, and glResolveMultisampleFramebufferAPPLE().
void juce::OpenGLContext::NativeContext::updateWindowPosition | ( | Rectangle< int > | bounds | ) |
|
noexcept |
|
noexcept |
bool juce::OpenGLContext::NativeContext::initialiseOnRenderThread | ( | OpenGLContext & | c | ) |
References juce::OpenGLContext::makeActive().
void juce::OpenGLContext::NativeContext::shutdownOnRenderThread | ( | ) |
References deactivateCurrentContext().
|
noexcept |
|
noexcept |
|
static |
References juce::ScopedXDisplay::display.
void juce::OpenGLContext::NativeContext::swapBuffers | ( | ) |
void juce::OpenGLContext::NativeContext::updateWindowPosition | ( | Rectangle< int > | newBounds | ) |
References component, juce::Component::getPeer(), juce::jmax(), and juce::juce_LinuxScaledToPhysicalBounds().
bool juce::OpenGLContext::NativeContext::setSwapInterval | ( | int | numFramesPerSwap | ) |
References juce::OpenGLHelpers::getExtensionFunction().
int juce::OpenGLContext::NativeContext::getSwapInterval | ( | ) | const |
|
noexcept |
|
noexcept |
|
noexcept |
void juce::OpenGLContext::NativeContext::triggerRepaint | ( | ) |
|
static |
References juce::OpenGLPixelFormat::accumulationBufferAlphaBits, juce::OpenGLPixelFormat::accumulationBufferBlueBits, juce::OpenGLPixelFormat::accumulationBufferGreenBits, juce::OpenGLPixelFormat::accumulationBufferRedBits, juce::OpenGLPixelFormat::alphaBits, juce::OpenGLPixelFormat::blueBits, juce::OpenGLPixelFormat::depthBufferBits, juce::OpenGLPixelFormat::greenBits, juce::ignoreUnused(), juce::OpenGLPixelFormat::multisamplingLevel, juce::OpenGLContext::openGL3_2, juce::OpenGLPixelFormat::redBits, and juce::OpenGLPixelFormat::stencilBufferBits.
Referenced by NativeContext().
bool juce::OpenGLContext::NativeContext::initialiseOnRenderThread | ( | OpenGLContext & | ) |
void juce::OpenGLContext::NativeContext::shutdownOnRenderThread | ( | ) |
References deactivateCurrentContext().
|
noexcept |
References getRawContext().
|
noexcept |
|
noexcept |
|
noexcept |
References jassert.
|
noexcept |
|
static |
void juce::OpenGLContext::NativeContext::swapBuffers | ( | ) |
void juce::OpenGLContext::NativeContext::updateWindowPosition | ( | Rectangle< int > | ) |
bool juce::OpenGLContext::NativeContext::setSwapInterval | ( | int | numFramesPerSwap | ) |
References minSwapTimeMs.
int juce::OpenGLContext::NativeContext::getSwapInterval | ( | ) | const |
bool juce::OpenGLContext::NativeContext::initialiseOnRenderThread | ( | OpenGLContext & | c | ) |
void juce::OpenGLContext::NativeContext::shutdownOnRenderThread | ( | ) |
References deactivateCurrentContext().
|
static |
|
noexcept |
References isActive().
|
noexcept |
|
noexcept |
bool juce::OpenGLContext::NativeContext::setSwapInterval | ( | int | numFramesPerSwap | ) |
References isActive(), and jassert.
int juce::OpenGLContext::NativeContext::getSwapInterval | ( | ) | const |
References isActive(), and jassert.
void juce::OpenGLContext::NativeContext::updateWindowPosition | ( | Rectangle< int > | bounds | ) |
|
noexcept |
References getRawContext().
|
noexcept |
|
noexcept |
void juce::OpenGLContext::NativeContext::triggerRepaint | ( | ) |
Component & juce::OpenGLContext::NativeContext::component |
NSOpenGLContext* juce::OpenGLContext::NativeContext::renderContext |
NSOpenGLView* juce::OpenGLContext::NativeContext::view |
ReferenceCountedObjectPtr<ReferenceCountedObject> juce::OpenGLContext::NativeContext::viewAttachment |
Referenced by NativeContext().
double juce::OpenGLContext::NativeContext::lastSwapTime |
Referenced by swapBuffers().
int juce::OpenGLContext::NativeContext::minSwapTimeMs |
Referenced by setSwapInterval(), and swapBuffers().
int juce::OpenGLContext::NativeContext::underrunCounter |
Referenced by swapBuffers().