Advertisement
Guest User

gpu_doc.tmp

a guest
Feb 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.61 KB | None | 0 0
  1. >> Метод: setPaletteColor
  2. Документация: function(index:number, color:number):number -- Set the palette color at the specified palette index. Returns the previous value.
  3. >> Метод: maxResolution
  4. Документация: function():number, number -- Get the maximum screen resolution.
  5. >> Метод: setDepth
  6. Документация: function(depth:number):number -- Set the color depth. Returns the previous value.
  7. >> Метод: setForeground
  8. Документация: function(value:number[, palette:boolean]):number, number or nil -- Sets the foreground color to the specified value. Optionally takes an explicit palette index. Returns the old value and if it was from the palette its palette index.
  9. >> Метод: getDepth
  10. Документация: function():number -- Returns the currently set color depth.
  11. >> Метод: getForeground
  12. Документация: function():number, boolean -- Get the current foreground color and whether it's from the palette or not.
  13. >> Метод: copy
  14. Документация: function(x:number, y:number, width:number, height:number, tx:number, ty:number):boolean -- Copies a portion of the screen from the specified location with the specified size by the specified translation.
  15. >> Метод: bind
  16. Документация: function(address:string[, reset:boolean=true]):boolean -- Binds the GPU to the screen with the specified address and resets screen settings if `reset` is true.
  17. >> Метод: setBackground
  18. Документация: function(value:number[, palette:boolean]):number, number or nil -- Sets the background color to the specified value. Optionally takes an explicit palette index. Returns the old value and if it was from the palette its palette index.
  19. >> Метод: slot
  20. Документация: 8
  21. >> Метод: getViewport
  22. Документация: function():number, number -- Get the current viewport resolution.
  23. >> Метод: set
  24. Документация: function(x:number, y:number, value:string[, vertical:boolean]):boolean -- Plots a string value to the screen at the specified position. Optionally writes the string vertically.
  25. >> Метод: setViewport
  26. Документация: function: 0x7fbd799db030
  27. >> Метод: type
  28. Документация: gpu
  29. >> Метод: setResolution
  30. Документация: function: 0x7fbd7aa38770
  31. >> Метод: get
  32. Документация: function(x:number, y:number):string, number, number, number or nil, number or nil -- Get the value displayed on the screen at the specified index, as well as the foreground and background color. If the foreground or background is from the palette, returns the palette indices as fourth and fifth results, else nil, respectively.
  33. >> Метод: address
  34. Документация: 9e4a4890-d28d-4d2b-b26c-10009e177323
  35. >> Метод: maxDepth
  36. Документация: function():number -- Get the maximum supported color depth.
  37. >> Метод: getBackground
  38. Документация: function():number, boolean -- Get the current background color and whether it's from the palette or not.
  39. >> Метод: fill
  40. Документация: function(x:number, y:number, width:number, height:number, char:string):boolean -- Fills a portion of the screen at the specified position with the specified size with the specified character.
  41. >> Метод: getPaletteColor
  42. Документация: function(index:number):number -- Get the palette color at the specified palette index.
  43. >> Метод: getScreen
  44. Документация: function():string -- Get the address of the screen the GPU is currently bound to.
  45. >> Метод: getResolution
  46. Документация: function():number, number -- Get the current screen resolution.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement