Home Reference Source Repository

js/base/RenderGroup.js

  1. 'use strict'
  2.  
  3. /**
  4. * RenderGroup class
  5. * @access public
  6. */
  7. export default class RenderGroup {
  8. /**
  9. * constructor
  10. * @access public
  11. * @constructor
  12. */
  13. constructor() {
  14. this.material = null
  15. this.boneArray = null
  16. this.indices = null
  17. this.indexBuffer = null
  18.  
  19. this._indexDataCache = null
  20. this.indices = []
  21. }
  22.  
  23. getBoneData() {
  24. }
  25.  
  26. getIndexData() {
  27. if(!this._indexDataCache){
  28. this._indexDataCache = new Uint16Array(this.indices)
  29. }
  30. return this._indexDataCache
  31. }
  32.  
  33. getAmbient() {
  34. return this.material.getAmbient()
  35. }
  36.  
  37. getDiffuse() {
  38. return this.material.getDiffuse()
  39. }
  40.  
  41. getSpecular() {
  42. return this.material.getSpecular()
  43. }
  44.  
  45. getShininess() {
  46. return this.material.getShininess()
  47. }
  48.  
  49. }