您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

44 行
790 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The IndexBuffer class
  12. // ---------------------
  13. //
  14. #if !defined __LOL_INDEXBUFFER_H__
  15. #define __LOL_INDEXBUFFER_H__
  16. #include <cstring>
  17. namespace lol
  18. {
  19. class IndexBuffer
  20. {
  21. public:
  22. IndexBuffer(size_t size);
  23. ~IndexBuffer();
  24. void *Lock(size_t offset, size_t size);
  25. void Unlock();
  26. void Bind();
  27. void Unbind();
  28. private:
  29. class IndexBufferData *m_data;
  30. };
  31. } /* namespace lol */
  32. #endif // __LOL_INDEXBUFFER_H__