glTextureContext_src.I 987 B

1234567891011121314151617181920212223242526272829303132
  1. // Filename: glTextureContext_src.I
  2. // Created by: drose (07Oct99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. ////////////////////////////////////////////////////////////////////
  15. // Function: CLP(TextureContext)::Constructor
  16. // Access: Public
  17. // Description:
  18. ////////////////////////////////////////////////////////////////////
  19. INLINE CLP(TextureContext)::
  20. CLP(TextureContext)(PreparedGraphicsObjects *pgo, Texture *tex) :
  21. TextureContext(pgo, tex)
  22. {
  23. _index = 0;
  24. _already_applied = false;
  25. _uses_mipmaps = false;
  26. _internal_format = 0;
  27. _width = 0;
  28. _height = 0;
  29. _depth = 0;
  30. }