d2derr.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. * d2derr.h - Header file for the Direct2D API
  6. * No original Microsoft headers were used in the creation of this
  7. * file.
  8. *API docs available at: http://msdn.microsoft.com/en-us/library/dd372349%28v=VS.85%29.aspx
  9. */
  10. #ifndef _D2DERR_H
  11. #define _D2DERR_H
  12. /* error codes */
  13. #define D2DERR_BAD_NUMBER 0x88990011
  14. #define D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED 0x88990009
  15. #define D2DERR_DISPLAY_STATE_INVALID 0x88990006
  16. #define D2DERR_EXCEEDS_MAX_BITMAP_SIZE 0x8899001D
  17. #define D2DERR_INCOMPATIBLE_BRUSH_TYPES 0x88990018
  18. #define D2DERR_INSUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
  19. #define D2DERR_INTERNAL_ERROR 0x88990008
  20. #define D2DERR_INVALID_CALL 0x8899000A
  21. #define D2DERR_LAYER_ALREADY_IN_USE 0x88990013
  22. #define D2DERR_MAX_TEXTURE_SIZE_EXCEEDED 0x8899000F
  23. #define D2DERR_NO_HARDWARE_DEVICE 0x8899000B
  24. #define D2DERR_NOT_INITIALIZED 0x88990002
  25. #define D2DERR_POP_CALL_DID_NOT_MATCH_PUSH 0x88990014
  26. #define D2DERR_PUSH_POP_UNBALANCED 0x88990016
  27. #define D2DERR_RECREATE_TARGET 0x8899000C
  28. #define D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT 0x88990017
  29. #define D2DERR_SCANNER_FAILED 0x88990004
  30. #define D2DERR_SCREEN_ACCESS_DENIED 0x88990005
  31. #define D2DERR_SHADER_COMPILE_FAILED 0x8899000E
  32. #define D2DERR_TARGET_NOT_GDI_COMPATIBLE 0x8899001A
  33. #define D2DERR_TEXT_EFFECT_IS_WRONG_TYPE 0x8899001B
  34. #define D2DERR_TEXT_RENDERER_NOT_RELEASED 0x8899001C
  35. #define D2DERR_TOO_MANY_SHADER_ELEMENTS 0x8899000D
  36. #define D2DERR_UNSUPPORTED_OPERATION 0x88990003
  37. #define D2DERR_UNSUPPORTED_PIXEL_FORMAT WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
  38. #define D2DERR_UNSUPPORTED_VERSION 0x88990010
  39. #define D2DERR_WIN32_ERROR 0x88990019
  40. #define D2DERR_WRONG_FACTORY 0x88990012
  41. #define D2DERR_WRONG_RESOURCE_DOMAIN 0x88990015
  42. #define D2DERR_WRONG_STATE 0x88990001
  43. #define D2DERR_ZERO_VECTOR 0x88990007
  44. #endif /* _D2DERR_H */