[orx-syphon] Upgraded use of ColorBufferGL3 to new interface
This commit is contained in:
@@ -8,6 +8,7 @@ import org.openrndr.Program
|
|||||||
import org.openrndr.draw.*
|
import org.openrndr.draw.*
|
||||||
|
|
||||||
import org.openrndr.internal.gl3.ColorBufferGL3
|
import org.openrndr.internal.gl3.ColorBufferGL3
|
||||||
|
import org.openrndr.internal.gl3.TextureStorageModeGL
|
||||||
|
|
||||||
|
|
||||||
class SyphonClient(private val appName: String? = null, private val serverName: String? = null): Extension {
|
class SyphonClient(private val appName: String? = null, private val serverName: String? = null): Extension {
|
||||||
@@ -36,7 +37,7 @@ class SyphonClient(private val appName: String? = null, private val serverName:
|
|||||||
/**
|
/**
|
||||||
* GL_TEXTURE_RECTANGLE is necessary
|
* GL_TEXTURE_RECTANGLE is necessary
|
||||||
*/
|
*/
|
||||||
val rectBuffer = ColorBufferGL3(GL_TEXTURE_RECTANGLE, name, w, h, 1.0, ColorFormat.RGBa, ColorType.UINT8, 0, BufferMultisample.Disabled, Session.root)
|
val rectBuffer = ColorBufferGL3(GL_TEXTURE_RECTANGLE, name, TextureStorageModeGL.IMAGE, w, h, 1.0, ColorFormat.RGBa, ColorType.UINT8, 0, BufferMultisample.Disabled, Session.root)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only create a new buffer if it's size changed
|
* Only create a new buffer if it's size changed
|
||||||
|
|||||||
Reference in New Issue
Block a user