|
|
@@ -27,6 +27,8 @@ |
|
|
|
namespace juce
|
|
|
|
{
|
|
|
|
|
|
|
|
class OpenGLTexture;
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/**
|
|
|
|
Creates an OpenGL context, which can be attached to a component.
|
|
|
@@ -97,6 +99,20 @@ public: |
|
|
|
*/
|
|
|
|
void setPixelFormat (const OpenGLPixelFormat& preferredPixelFormat) noexcept;
|
|
|
|
|
|
|
|
/** Texture magnification filters, used by setTextureMagnificationFilter(). */
|
|
|
|
enum TextureMagnificationFilter
|
|
|
|
{
|
|
|
|
nearest,
|
|
|
|
linear
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Sets the texture magnification filter. By default the texture magnification
|
|
|
|
filter is linear. However, for faster rendering you may want to use the
|
|
|
|
'nearest' magnification filter. This option will not affect any textures
|
|
|
|
created before this function was called. */
|
|
|
|
void setTextureMagnificationFilter (TextureMagnificationFilter magFilterMode) noexcept;
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/** Provides a context with which you'd like this context's resources to be shared.
|
|
|
|
The object passed-in here is a platform-dependent native context object, and
|
|
|
|
must not be deleted while this context may still be using it! To turn off sharing,
|
|
|
@@ -298,6 +314,8 @@ public: |
|
|
|
#endif
|
|
|
|
|
|
|
|
private:
|
|
|
|
friend class OpenGLTexture;
|
|
|
|
|
|
|
|
class CachedImage;
|
|
|
|
class Attachment;
|
|
|
|
NativeContext* nativeContext = nullptr;
|
|
|
@@ -309,6 +327,7 @@ private: |
|
|
|
OpenGLVersion versionRequired = defaultGLVersion;
|
|
|
|
size_t imageCacheMaxSize = 8 * 1024 * 1024;
|
|
|
|
bool renderComponents = true, useMultisampling = false, continuousRepaint = false, overrideCanAttach = false;
|
|
|
|
TextureMagnificationFilter texMagFilter = linear;
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
struct AsyncWorker : public ReferenceCountedObject
|
|
|
|