2022-03-03 19:19:40 +01:00
|
|
|
Class {
|
|
|
|
#name : #OpenGLTexImage2D,
|
|
|
|
#superclass : #DiyaBaseObject,
|
|
|
|
#instVars : [
|
|
|
|
'target',
|
|
|
|
'level',
|
|
|
|
'internalFormat',
|
|
|
|
'width',
|
|
|
|
'height',
|
|
|
|
'border',
|
|
|
|
'format',
|
|
|
|
'type',
|
|
|
|
'data'
|
|
|
|
],
|
|
|
|
#pools : [
|
|
|
|
'OpenGLConstants',
|
|
|
|
'OpenGLTypes'
|
|
|
|
],
|
|
|
|
#category : #'Diya-OpenGL'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> border [
|
|
|
|
^ border
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> border: anObject [
|
|
|
|
border := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> data [
|
|
|
|
^ data
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> data: anObject [
|
|
|
|
data := anObject
|
|
|
|
]
|
|
|
|
|
2022-03-04 20:28:38 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> debug [
|
|
|
|
self
|
|
|
|
stdlog: 'Target:',target hex;
|
|
|
|
stdlog: 'level:',level asString;
|
|
|
|
stdlog: 'border :',border asString;
|
|
|
|
stdlog: 'width :',width asString;
|
|
|
|
stdlog: 'height :',height asString;
|
|
|
|
stdlog: 'type :',type hex;
|
|
|
|
stdlog: 'format :',format hex;
|
|
|
|
stdlog: 'internalformat :',internalFormat hex
|
|
|
|
]
|
|
|
|
|
2022-03-06 18:33:10 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> drop [
|
|
|
|
^self subclassResponsibility
|
|
|
|
]
|
|
|
|
|
2022-03-06 00:58:28 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> extent [
|
|
|
|
^ width @ height
|
|
|
|
]
|
|
|
|
|
2022-03-03 19:19:40 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> format [
|
|
|
|
^ format
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> format: anObject [
|
|
|
|
format := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> height [
|
|
|
|
^ height
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> height: anObject [
|
|
|
|
height := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> internalFormat [
|
|
|
|
^ internalFormat
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> internalFormat: anObject [
|
|
|
|
internalFormat := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> level [
|
|
|
|
^ level
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> level: anObject [
|
|
|
|
level := anObject
|
|
|
|
]
|
|
|
|
|
2022-03-06 18:33:10 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> setup [
|
|
|
|
^self subclassResponsibility
|
|
|
|
]
|
|
|
|
|
2022-03-03 19:19:40 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> target [
|
|
|
|
^ target
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> target: anObject [
|
|
|
|
target := anObject
|
|
|
|
]
|
|
|
|
|
2022-03-06 18:33:10 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> teardown [
|
|
|
|
^self subclassResponsibility
|
|
|
|
]
|
|
|
|
|
2022-03-03 19:19:40 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> type [
|
|
|
|
^ type
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> type: anObject [
|
|
|
|
type := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> width [
|
|
|
|
^ width
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
OpenGLTexImage2D >> width: anObject [
|
|
|
|
width := anObject
|
|
|
|
]
|