Advertisement
Guest User

cuis-ffi-raylib

a guest
Mar 19th, 2020
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'From Cuis 5.0 [latest update: #4024] on 19 March 2020 at 10:53:57 pm'!
  2. 'Description '!
  3. !provides: 'Game-Raylib' 1 4!
  4. !requires: 'FFI' 1 33 nil!
  5. SystemOrganization addCategory: #'Game-Raylib'!
  6.  
  7.  
  8. !classDefinition: #RaylibColor category: #'Game-Raylib'!
  9. ExternalStructure subclass: #RaylibColor
  10.     instanceVariableNames: ''
  11.     classVariableNames: ''
  12.     poolDictionaries: ''
  13.     category: 'Game-Raylib'!
  14. !classDefinition: 'RaylibColor class' category: #'Game-Raylib'!
  15. RaylibColor class
  16.     instanceVariableNames: ''!
  17.  
  18. !classDefinition: #RaylibRectangle category: #'Game-Raylib'!
  19. ExternalStructure subclass: #RaylibRectangle
  20.     instanceVariableNames: ''
  21.     classVariableNames: ''
  22.     poolDictionaries: ''
  23.     category: 'Game-Raylib'!
  24. !classDefinition: 'RaylibRectangle class' category: #'Game-Raylib'!
  25. RaylibRectangle class
  26.     instanceVariableNames: ''!
  27.  
  28. !classDefinition: #RaylibVector2 category: #'Game-Raylib'!
  29. ExternalStructure subclass: #RaylibVector2
  30.     instanceVariableNames: ''
  31.     classVariableNames: ''
  32.     poolDictionaries: ''
  33.     category: 'Game-Raylib'!
  34. !classDefinition: 'RaylibVector2 class' category: #'Game-Raylib'!
  35. RaylibVector2 class
  36.     instanceVariableNames: ''!
  37.  
  38. !classDefinition: #Raylib category: #'Game-Raylib'!
  39. Object subclass: #Raylib
  40.     instanceVariableNames: ''
  41.     classVariableNames: ''
  42.     poolDictionaries: ''
  43.     category: 'Game-Raylib'!
  44. !classDefinition: 'Raylib class' category: #'Game-Raylib'!
  45. Raylib class
  46.     instanceVariableNames: ''!
  47.  
  48. !classDefinition: #RaylibExamples category: #'Game-Raylib'!
  49. Object subclass: #RaylibExamples
  50.     instanceVariableNames: ''
  51.     classVariableNames: ''
  52.     poolDictionaries: ''
  53.     category: 'Game-Raylib'!
  54. !classDefinition: 'RaylibExamples class' category: #'Game-Raylib'!
  55. RaylibExamples class
  56.     instanceVariableNames: ''!
  57.  
  58. !classDefinition: #RaylibKeyboardKey category: #'Game-Raylib'!
  59. Object subclass: #RaylibKeyboardKey
  60.     instanceVariableNames: ''
  61.     classVariableNames: ''
  62.     poolDictionaries: ''
  63.     category: 'Game-Raylib'!
  64. !classDefinition: 'RaylibKeyboardKey class' category: #'Game-Raylib'!
  65. RaylibKeyboardKey class
  66.     instanceVariableNames: ''!
  67.  
  68. !classDefinition: #RaylibMouseButton category: #'Game-Raylib'!
  69. Object subclass: #RaylibMouseButton
  70.     instanceVariableNames: ''
  71.     classVariableNames: ''
  72.     poolDictionaries: ''
  73.     category: 'Game-Raylib'!
  74. !classDefinition: 'RaylibMouseButton class' category: #'Game-Raylib'!
  75. RaylibMouseButton class
  76.     instanceVariableNames: ''!
  77.  
  78.  
  79. !RaylibColor methodsFor: 'accessing'!
  80. a
  81.     "This method was automatically generated. See RaylibColor class>>fields."
  82.     <generated>
  83.     ^handle unsignedCharAt: 4! !
  84.  
  85. !RaylibColor methodsFor: 'accessing'!
  86. a: anObject
  87.     "This method was automatically generated. See RaylibColor class>>fields."
  88.     <generated>
  89.     handle unsignedCharAt: 4 put: anObject! !
  90.  
  91. !RaylibColor methodsFor: 'accessing'!
  92. b
  93.     "This method was automatically generated. See RaylibColor class>>fields."
  94.     <generated>
  95.     ^handle unsignedCharAt: 3! !
  96.  
  97. !RaylibColor methodsFor: 'accessing'!
  98. b: anObject
  99.     "This method was automatically generated. See RaylibColor class>>fields."
  100.     <generated>
  101.     handle unsignedCharAt: 3 put: anObject! !
  102.  
  103. !RaylibColor methodsFor: 'accessing'!
  104. g
  105.     "This method was automatically generated. See RaylibColor class>>fields."
  106.     <generated>
  107.     ^handle unsignedCharAt: 2! !
  108.  
  109. !RaylibColor methodsFor: 'accessing'!
  110. g: anObject
  111.     "This method was automatically generated. See RaylibColor class>>fields."
  112.     <generated>
  113.     handle unsignedCharAt: 2 put: anObject! !
  114.  
  115. !RaylibColor methodsFor: 'accessing'!
  116. r
  117.     "This method was automatically generated. See RaylibColor class>>fields."
  118.     <generated>
  119.     ^handle unsignedCharAt: 1! !
  120.  
  121. !RaylibColor methodsFor: 'accessing'!
  122. r: anObject
  123.     "This method was automatically generated. See RaylibColor class>>fields."
  124.     <generated>
  125.     handle unsignedCharAt: 1 put: anObject! !
  126.  
  127. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 12:07:03'!
  128. darkblue
  129.     ^ self fromHandle: #[0 82 172 255]! !
  130.  
  131. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 10:47:30'!
  132. darkgray
  133.     ^ self fromHandle: #[80 80 80 255].! !
  134.  
  135. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 14:32:39'!
  136. gray
  137.     ^ self fromHandle: #[130 130 130 255]! !
  138.  
  139. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/18/2020 23:22:31'!
  140. lightgray
  141.     ^ self fromHandle: #[200 200 200 255].! !
  142.  
  143. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 12:17:29'!
  144. lime
  145.     ^ self fromHandle: #[0 158 47 255]! !
  146.  
  147. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 11:14:10'!
  148. maroon
  149.     ^ self fromHandle: #[190 33 55 255]! !
  150.  
  151. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 11:40:20'!
  152. r: red g: green b: blue a: alpha
  153.     | color |
  154.     color := self new .
  155.     color r: red .
  156.     color g: green .
  157.     color b: blue .
  158.     color a: alpha.
  159.     ^ color! !
  160.  
  161. !RaylibColor class methodsFor: 'instance creation' stamp: 'smotti 3/18/2020 23:22:26'!
  162. raywhite
  163.     ^ self fromHandle: #[240 240 240 255]! !
  164.  
  165. !RaylibColor class methodsFor: 'compiling' stamp: 'smotti 3/18/2020 22:54:32'!
  166. fields
  167.     ^ #( (r 'char') (g 'char') (b 'char') (a 'char') )! !
  168.  
  169. !RaylibRectangle methodsFor: 'accessing'!
  170. height
  171.     "This method was automatically generated. See RaylibRectangle class>>fields."
  172.     <generated>
  173.     ^handle floatAt: 13! !
  174.  
  175. !RaylibRectangle methodsFor: 'accessing'!
  176. height: anObject
  177.     "This method was automatically generated. See RaylibRectangle class>>fields."
  178.     <generated>
  179.     handle floatAt: 13 put: anObject! !
  180.  
  181. !RaylibRectangle methodsFor: 'accessing'!
  182. width
  183.     "This method was automatically generated. See RaylibRectangle class>>fields."
  184.     <generated>
  185.     ^handle floatAt: 9! !
  186.  
  187. !RaylibRectangle methodsFor: 'accessing'!
  188. width: anObject
  189.     "This method was automatically generated. See RaylibRectangle class>>fields."
  190.     <generated>
  191.     handle floatAt: 9 put: anObject! !
  192.  
  193. !RaylibRectangle methodsFor: 'accessing'!
  194. x
  195.     "This method was automatically generated. See RaylibRectangle class>>fields."
  196.     <generated>
  197.     ^handle floatAt: 1! !
  198.  
  199. !RaylibRectangle methodsFor: 'accessing'!
  200. x: anObject
  201.     "This method was automatically generated. See RaylibRectangle class>>fields."
  202.     <generated>
  203.     handle floatAt: 1 put: anObject! !
  204.  
  205. !RaylibRectangle methodsFor: 'accessing'!
  206. y
  207.     "This method was automatically generated. See RaylibRectangle class>>fields."
  208.     <generated>
  209.     ^handle floatAt: 5! !
  210.  
  211. !RaylibRectangle methodsFor: 'accessing'!
  212. y: anObject
  213.     "This method was automatically generated. See RaylibRectangle class>>fields."
  214.     <generated>
  215.     handle floatAt: 5 put: anObject! !
  216.  
  217. !RaylibRectangle class methodsFor: 'compiling' stamp: 'smotti 3/19/2020 14:56:05'!
  218. fields
  219.     ^ #( (x 'float') (y 'float') (width 'float') (height 'float') )! !
  220.  
  221. !RaylibRectangle class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 16:26:10'!
  222. x: x y: y width: width height: height
  223.     | rectangle |
  224.     rectangle := self fromHandle: (ExternalAddress gcallocate: 16) .
  225.     rectangle x: x .
  226.     rectangle y: y.
  227.     rectangle width: width .
  228.     rectangle height: height .
  229.     ^ rectangle! !
  230.  
  231. !RaylibVector2 methodsFor: 'accessing'!
  232. x
  233.     "This method was automatically generated. See RaylibVector2 class>>fields."
  234.     <generated>
  235.     ^handle floatAt: 1! !
  236.  
  237. !RaylibVector2 methodsFor: 'accessing'!
  238. x: anObject
  239.     "This method was automatically generated. See RaylibVector2 class>>fields."
  240.     <generated>
  241.     handle floatAt: 1 put: anObject! !
  242.  
  243. !RaylibVector2 methodsFor: 'accessing'!
  244. y
  245.     "This method was automatically generated. See RaylibVector2 class>>fields."
  246.     <generated>
  247.     ^handle floatAt: 5! !
  248.  
  249. !RaylibVector2 methodsFor: 'accessing'!
  250. y: anObject
  251.     "This method was automatically generated. See RaylibVector2 class>>fields."
  252.     <generated>
  253.     handle floatAt: 5 put: anObject! !
  254.  
  255. !RaylibVector2 class methodsFor: 'compiling' stamp: 'smotti 3/19/2020 22:51:40'!
  256. fields
  257.     "self defineFields"
  258.     ^ #( (x 'float') (y 'float') )! !
  259.  
  260. !RaylibVector2 class methodsFor: 'class initialization' stamp: 'smotti 3/19/2020 22:34:01'!
  261. initialize
  262.     self compileFields ! !
  263.  
  264. !RaylibVector2 class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 22:43:53'!
  265. x: x y: y
  266.     | vector |
  267.     "vector := self fromHandle: (ExternalAddress allocate: 8) ."
  268.     vector := self new .
  269.     vector x: x .
  270.     vector y: y .
  271.     ^ vector! !
  272.  
  273. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 22:40:19'!
  274. apiBeginDrawing
  275.     <apicall: void 'BeginDrawing' () module: 'libraylib'>
  276.     ^ self externalCallFailed ! !
  277.  
  278. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 23:07:07'!
  279. apiClearBackground: aColor
  280.     <apicall: void 'ClearBackground' (RaylibColor) module: 'libraylib'>
  281.     ^ self externalCallFailed ! !
  282.  
  283. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 21:50:03'!
  284. apiCloseWindow
  285.     <apicall: void 'CloseWindow' () module: 'libraylib'>
  286.     ^ self externalCallFailed ! !
  287.  
  288. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 11:30:33'!
  289. apiDrawCircleAtX: x y: y radius: radius color: color
  290.     <apicall: void 'DrawCircle' (ulong ulong float RaylibColor) module: 'libraylib'>
  291.     ^ self externalCallFailed ! !
  292.  
  293. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 22:52:44'!
  294. apiDrawCircleVatPosition: center radius: radius color: color
  295.     "TODO: Figure out why it doesn't work with the vector. It works for color structs."
  296.     "Meaning the apicall to DrawCircleV doesn't work. It doesn't error, it just doesn't draw anything."
  297.     "Though DrawCircle works, which actually calls DrawCircleV in raylib. That's why we call it here."
  298.     self apiDrawCircleAtX: center x y: center y radius: radius color: color .
  299.    
  300.     "<cdecl: void 'DrawCircleV' (RaylibVector2 float RaylibColor) module: 'libraylib'>
  301.     ^ self externalCallFailed"! !
  302.  
  303. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 14:31:17'!
  304. apiDrawRectangleAtX: x y: y width: width height: height color: color
  305.     <apicall: void 'DrawRectangle' (ulong ulong ulong ulong RaylibColor) module: 'libraylib'>
  306.     ^ self externalCallFailed ! !
  307.  
  308. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 16:57:00'!
  309. apiDrawRectangleRec: aRectangle color: aColor
  310.     "<apicall: void 'DrawRectangleRec' (RaylibRectangle RaylibColor) module: 'libraylib'>
  311.     ^ self externalCallFailed "
  312.    
  313.     self apiDrawRectangleAtX: aRectangle x y: aRectangle y width: aRectangle width height: aRectangle height color: aColor .! !
  314.  
  315. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 22:54:41'!
  316. apiDrawText: text posX: posX posY: posY fontSize: fontSize color: color
  317.     <apicall: void 'DrawText' (char* ulong ulong ulong RaylibColor) module: 'libraylib'>
  318.     ^ self externalCallFailed ! !
  319.  
  320. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 22:40:46'!
  321. apiEndDrawing
  322.     <apicall: void 'EndDrawing' () module: 'libraylib'>
  323.     ^ self externalCallFailed ! !
  324.  
  325. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 22:58:12'!
  326. apiGetColor: anInteger
  327.     <apicall: RaylibColor 'GetColor' (ulong) module: 'libraylib'>
  328.     ^ self externalCallFailed ! !
  329.  
  330. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 12:08:52'!
  331. apiGetMousePosition
  332.     <apicall: RaylibVector2 'GetMousePosition' () module: 'libraylib'>
  333.     ^ self externalCallFailed ! !
  334.  
  335. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 14:29:48'!
  336. apiGetMouseWheelMove
  337.     <apicall: ulong 'GetMouseWheelMove' () module: 'libraylib'>
  338.     ^ self externalCallFailed ! !
  339.  
  340. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 21:48:34'!
  341. apiInitWindowWidth: width height: height title: title
  342.     <apicall: void 'InitWindow' (ulong ulong char*) module: 'libraylib'>
  343.     ^ self externalCallFailed ! !
  344.  
  345. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 10:24:34'!
  346. apiIsKeyDown: aKey
  347.     <apicall: bool 'IsKeyDown' (ulong) module: 'libraylib'>
  348.     ^ self externalCallFailed ! !
  349.  
  350. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 12:14:23'!
  351. apiIsMouseButtonPressed: aButton
  352.     <apicall: bool 'IsMouseButtonPressed' (ulong) module: 'libraylib'>
  353.     ^ self externalCallFailed ! !
  354.  
  355. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/19/2020 09:50:07'!
  356. apiSetTargetFPS: anInteger
  357.     <apicall: void 'SetTargetFPS' (ulong) module: 'libraylib'>
  358.     ^ self externalCallFailed ! !
  359.  
  360. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 22:37:02'!
  361. apiSetTargetFps: anInteger
  362.     <apicall: void 'SetTargetFps' (ulong) module: 'libraylib'>
  363.     ^ self externalCallFailed ! !
  364.  
  365. !Raylib class methodsFor: 'as yet unclassified' stamp: 'smotti 3/18/2020 22:37:49'!
  366. apiWindowShouldClose
  367.     <apicall: bool 'WindowShouldClose' () module: 'libraylib'>
  368.     ^ self externalCallFailed ! !
  369.  
  370. !RaylibExamples class methodsFor: 'core' stamp: 'smotti 3/19/2020 16:01:39'!
  371. basicWindow
  372.     | lightgray raywhite |
  373.     lightgray := RaylibColor lightgray.
  374.     raywhite := RaylibColor raywhite.
  375.     Raylib apiInitWindowWidth: 800 height: 450 title: 'raylib [core] example - basic window'.
  376.     Raylib apiSetTargetFPS: 60.
  377.     [Raylib apiWindowShouldClose] whileFalse: [
  378.         Raylib apiBeginDrawing.
  379.         Raylib apiClearBackground: raywhite.
  380.         Raylib apiDrawText: 'Congrats!! You created your first window!!' posX: 190 posY: 200 fontSize: 20 color: lightgray.
  381.         Raylib apiEndDrawing.
  382.         ].
  383.     Raylib apiCloseWindow.! !
  384.  
  385. !RaylibExamples class methodsFor: 'core' stamp: 'smotti 3/19/2020 14:54:54'!
  386. camera2d
  387.     | maxBuildings screenWidth screenHeight player buildings buildColors |
  388.    
  389.     maxBuildings := 100 .
  390.     screenWidth := 800 .
  391.     screenHeight := 450 .
  392.    
  393.     Raylib apiInitWindowWidth: screenWidth height: screenHeight title: 'raylib [core] example - 2d camera' .
  394.    
  395.     player := RaylibRectangle x: 400 y: 280 width: 40 height: 40.
  396.    
  397.     ! !
  398.  
  399. !RaylibExamples class methodsFor: 'core' stamp: 'smotti 3/19/2020 16:29:08'!
  400. inputKeys
  401.     | width height ballPosition |
  402.     width := 800 .
  403.     height := 450 .
  404.     ballPosition := RaylibVector2 x: (width / 2) asFloat y: (height / 2) asFloat .
  405.     Raylib apiInitWindowWidth: width height: height title: 'raylib [core] example - keyboard input' .
  406.     Raylib apiSetTargetFPS: 60.
  407.     [ Raylib apiWindowShouldClose ] whileFalse: [
  408.         (Raylib apiIsKeyDown: RaylibKeyboardKey right) ifTrue: [ (ballPosition x: ballPosition x + (2 asFloat)) ] .
  409.         (Raylib apiIsKeyDown: RaylibKeyboardKey left) ifTrue: [ (ballPosition x: ballPosition x - (2 asFloat)) ] .
  410.         (Raylib apiIsKeyDown: RaylibKeyboardKey up) ifTrue: [ (ballPosition y: ballPosition y - (2 asFloat)) ] .
  411.         (Raylib apiIsKeyDown: RaylibKeyboardKey down) ifTrue: [ (ballPosition y: ballPosition y + (2 asFloat)) ] .
  412.        
  413.         Raylib apiBeginDrawing .
  414.         Raylib apiClearBackground: RaylibColor raywhite .
  415.         Raylib apiDrawText: 'move the ball with arrow keys' posX: 10 posY: 10 fontSize: 20 color: RaylibColor lightgray .
  416.         Raylib apiDrawCircleVatPosition: ballPosition radius: 50 asFloat color: RaylibColor maroon .
  417.         "Raylib apiDrawCircleAtX: ballPosition x y: ballPosition y radius: 50 asFloat color: RaylibColor maroon. "
  418.         Raylib apiEndDrawing .
  419.         ].
  420.     Raylib apiCloseWindow .! !
  421.  
  422. !RaylibExamples class methodsFor: 'core' stamp: 'smotti 3/19/2020 16:29:13'!
  423. inputMouse
  424.     | width height ballPosition ballColor |
  425.     width := 800 .
  426.     height := 450 .
  427.    
  428.     Raylib apiInitWindowWidth: width height: height title: 'raylib [core] example - mouse input' .
  429.    
  430.     ballPosition := RaylibVector2 x: -100.0 y: 100.0 .
  431.     ballColor := RaylibColor darkblue .
  432.    
  433.     Raylib apiSetTargetFPS: 60.
  434.    
  435.     [ Raylib apiWindowShouldClose ] whileFalse: [
  436.         ballPosition := Raylib apiGetMousePosition .
  437.        
  438.         (Raylib apiIsMouseButtonPressed: RaylibMouseButton leftButton) ifTrue: [ ballColor := RaylibColor  maroon ] ifFalse: [
  439.             (Raylib apiIsMouseButtonPressed: RaylibMouseButton rightButton) ifTrue: [ ballColor := RaylibColor  darkblue ] ifFalse: [
  440.                 (Raylib apiIsMouseButtonPressed: RaylibMouseButton middleButton) ifTrue: [ ballColor := RaylibColor  lime ]
  441.                 ]
  442.             ] .
  443.        
  444.         Raylib apiBeginDrawing .
  445.        
  446.         Raylib apiClearBackground: RaylibColor raywhite .
  447.         Raylib apiDrawCircleVatPosition:  ballPosition radius: 40 color: ballColor .
  448.         Raylib apiDrawText: 'move ball with mouse and click mouse button to change color' posX: 10 posY: 10 fontSize: 20 color: RaylibColor darkgray .
  449.        
  450.         Raylib apiEndDrawing .
  451.         ] .
  452.    
  453.     Raylib apiCloseWindow .! !
  454.  
  455. !RaylibExamples class methodsFor: 'core' stamp: 'smotti 3/19/2020 14:43:27'!
  456. inputMouseWheel
  457.     | width height boxPositionY scrollSpeed |
  458.     width := 800 .
  459.     height := 450 .
  460.    
  461.     Raylib apiInitWindowWidth: width height: height title: 'raylib [core] example - input mouse wheel' .
  462.    
  463.     boxPositionY := (height / 2) - 40 .
  464.     scrollSpeed := 4 .
  465.    
  466.     Raylib apiSetTargetFPS: 60.
  467.    
  468.     [ Raylib apiWindowShouldClose ] whileFalse: [
  469.         boxPositionY := boxPositionY - (Raylib apiGetMouseWheelMove * scrollSpeed) .
  470.        
  471.         Raylib apiBeginDrawing .
  472.        
  473.         Raylib apiClearBackground: RaylibColor raywhite .
  474.         Raylib apiDrawRectangleAtX: (width / 2) - 40 y: boxPositionY  width: 80 height: 80 color: RaylibColor maroon .
  475.         Raylib apiDrawText: 'Use mouse wheel to move the cube up and down!!' posX: 10 posY: 10 fontSize: 20 color: RaylibColor gray .
  476.         Raylib apiDrawText: 'Box position Y: ' , boxPositionY asString posX: 10 posY: 40 fontSize: 20 color: RaylibColor lightgray .
  477.        
  478.         Raylib apiEndDrawing .
  479.         ] .
  480.    
  481.     Raylib apiCloseWindow .! !
  482.  
  483. !RaylibKeyboardKey class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 10:42:54'!
  484. down
  485.     ^ 264! !
  486.  
  487. !RaylibKeyboardKey class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 10:43:10'!
  488. left
  489.     ^ 263! !
  490.  
  491. !RaylibKeyboardKey class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 10:43:19'!
  492. right
  493.     ^ 262! !
  494.  
  495. !RaylibKeyboardKey class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 10:42:41'!
  496. up
  497.     ^ 265! !
  498.  
  499. !RaylibMouseButton class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 12:15:30'!
  500. leftButton
  501.     ^ 0! !
  502.  
  503. !RaylibMouseButton class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 12:15:50'!
  504. middleButton
  505.     ^ 2! !
  506.  
  507. !RaylibMouseButton class methodsFor: 'instance creation' stamp: 'smotti 3/19/2020 12:15:41'!
  508. rightButton
  509.     ^ 1! !
  510. RaylibVector2 initialize!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement