OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 | 9 |
10 #ifndef GrGLDefines_DEFINED | 10 #ifndef GrGLDefines_DEFINED |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 #define GR_GL_FRAMEBUFFER_BINDING 0x8CA6 | 792 #define GR_GL_FRAMEBUFFER_BINDING 0x8CA6 |
793 #define GR_GL_RENDERBUFFER_BINDING 0x8CA7 | 793 #define GR_GL_RENDERBUFFER_BINDING 0x8CA7 |
794 #define GR_GL_MAX_RENDERBUFFER_SIZE 0x84E8 | 794 #define GR_GL_MAX_RENDERBUFFER_SIZE 0x84E8 |
795 | 795 |
796 #define GR_GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 | 796 #define GR_GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 |
797 | 797 |
798 /* Path Rendering */ | 798 /* Path Rendering */ |
799 // commands | 799 // commands |
800 #define GR_GL_CLOSE_PATH 0x00 | 800 #define GR_GL_CLOSE_PATH 0x00 |
801 #define GR_GL_MOVE_TO 0x02 | 801 #define GR_GL_MOVE_TO 0x02 |
802 #define GR_GL_RELATIVE_MOVE_TO 0x03 | |
803 #define GR_GL_LINE_TO 0x04 | 802 #define GR_GL_LINE_TO 0x04 |
804 #define GR_GL_RELATIVE_LINE_TO 0x05 | |
805 #define GR_GL_HORIZONTAL_LINE_TO 0x06 | |
806 #define GR_GL_RELATIVE_HORIZONTAL_LINE_TO 0x07 | |
807 #define GR_GL_VERTICAL_LINE_TO 0x08 | |
808 #define GR_GL_RELATIVE_VERTICAL_LINE_TO 0x09 | |
809 #define GR_GL_QUADRATIC_CURVE_TO 0x0A | 803 #define GR_GL_QUADRATIC_CURVE_TO 0x0A |
810 #define GR_GL_RELATIVE_QUADRATIC_CURVE_TO 0x0B | |
811 #define GR_GL_CUBIC_CURVE_TO 0x0C | 804 #define GR_GL_CUBIC_CURVE_TO 0x0C |
812 #define GR_GL_RELATIVE_CUBIC_CURVE_TO 0x0D | |
813 #define GR_GL_SMOOTH_QUADRATIC_CURVE_TO 0x0E | |
814 #define GR_GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO 0x0F | |
815 #define GR_GL_SMOOTH_CUBIC_CURVE_TO 0x10 | |
816 #define GR_GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO 0x11 | |
817 #define GR_GL_SMALL_CCW_ARC_TO 0x12 | |
818 #define GR_GL_RELATIVE_SMALL_CCW_ARC_TO 0x13 | |
819 #define GR_GL_SMALL_CW_ARC_TO 0x14 | |
820 #define GR_GL_RELATIVE_SMALL_CW_ARC_TO 0x15 | |
821 #define GR_GL_LARGE_CCW_ARC_TO 0x16 | |
822 #define GR_GL_RELATIVE_LARGE_CCW_ARC_TO 0x17 | |
823 #define GR_GL_LARGE_CW_ARC_TO 0x18 | |
824 #define GR_GL_RELATIVE_LARGE_CW_ARC_TO 0x19 | |
825 #define GR_GL_CIRCULAR_CCW_ARC_TO 0xF8 | |
826 #define GR_GL_CIRCULAR_CW_ARC_TO 0xFA | |
827 #define GR_GL_CIRCULAR_TANGENT_ARC_TO 0xFC | |
828 #define GR_GL_ARC_TO 0xFE | |
829 #define GR_GL_RELATIVE_ARC_TO 0xFF | |
830 | 805 |
831 // path parameters | 806 // path parameters |
832 #define GR_GL_PATH_STROKE_WIDTH 0x9075 | 807 #define GR_GL_PATH_STROKE_WIDTH 0x9075 |
833 #define GR_GL_PATH_INITIAL_END_CAP 0x9077 | 808 #define GR_GL_PATH_END_CAPS 0x9076 |
834 #define GR_GL_PATH_TERMINAL_END_CAP 0x9078 | |
835 #define GR_GL_PATH_JOIN_STYLE 0x9079 | 809 #define GR_GL_PATH_JOIN_STYLE 0x9079 |
836 #define GR_GL_PATH_MITER_LIMIT 0x907A | 810 #define GR_GL_PATH_MITER_LIMIT 0x907A |
837 #define GR_GL_PATH_INITIAL_DASH_CAP 0x907C | |
838 #define GR_GL_PATH_TERMINAL_DASH_CAP 0x907D | |
839 #define GR_GL_PATH_DASH_OFFSET 0x907E | |
840 #define GR_GL_PATH_CLIENT_LENGTH 0x907F | |
841 #define GR_GL_PATH_DASH_OFFSET_RESET 0x90B4 | |
842 #define GR_GL_PATH_FILL_MODE 0x9080 | |
843 #define GR_GL_PATH_FILL_MASK 0x9081 | |
844 #define GR_GL_PATH_FILL_COVER_MODE 0x9082 | |
845 #define GR_GL_PATH_STROKE_COVER_MODE 0x9083 | |
846 #define GR_GL_PATH_STROKE_MASK 0x9084 | |
847 #define GR_GL_PATH_END_CAPS 0x9076 | |
848 #define GR_GL_PATH_DASH_CAPS 0x907B | |
849 #define GR_GL_PATH_COMMAND_COUNT 0x909D | |
850 #define GR_GL_PATH_COORD_COUNT 0x909E | |
851 #define GR_GL_PATH_DASH_ARRAY_COUNT 0x909F | |
852 #define GR_GL_PATH_FILL_BOUNDING_BOX 0x90A1 | |
853 #define GR_GL_PATH_STROKE_BOUNDING_BOX 0x90A2 | |
854 | 811 |
855 // fill modes | 812 // fill modes |
856 /* GL_INVERT */ | |
857 #define GR_GL_COUNT_UP 0x9088 | 813 #define GR_GL_COUNT_UP 0x9088 |
858 #define GR_GL_COUNT_DOWN 0x9089 | |
859 /* GL_PATH_FILL_MODE_NV */ | |
860 | |
861 // gen mode | |
862 /* GL_NONE */ | |
863 /* GL_EYE_LINEAR */ | |
864 /* GL_OBJECT_LINEAR */ | |
865 #define GR_GL_PATH_OBJECT_BOUNDING_BOX 0x908A | |
866 | 814 |
867 // cover mode | 815 // cover mode |
868 #define GR_GL_CONVEX_HULL 0x908B | |
869 #define GR_GL_BOUNDING_BOX 0x908D | 816 #define GR_GL_BOUNDING_BOX 0x908D |
870 #define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C | 817 #define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C |
871 /* GL_PATH_FILL_COVER_MODE_NV */ | |
872 | 818 |
873 // transform type | 819 // transform type |
874 /* GL_NONE */ | |
875 #define GR_GL_TRANSLATE_X 0x908E | 820 #define GR_GL_TRANSLATE_X 0x908E |
876 #define GR_GL_TRANSLATE_Y 0x908F | 821 #define GR_GL_TRANSLATE_Y 0x908F |
877 #define GR_GL_TRANSLATE_2D 0x9090 | 822 #define GR_GL_TRANSLATE_2D 0x9090 |
878 #define GR_GL_TRANSLATE_3D 0x9091 | |
879 #define GR_GL_AFFINE_2D 0x9092 | |
880 #define GR_GL_AFFINE_3D 0x9094 | |
881 #define GR_GL_TRANSPOSE_AFFINE_2D 0x9096 | 823 #define GR_GL_TRANSPOSE_AFFINE_2D 0x9096 |
882 #define GR_GL_TRANSPOSE_AFFINE_3D 0x9098 | |
883 | |
884 | 824 |
885 // cap/dash values | 825 // cap/dash values |
886 /* GL_FLAT */ | |
887 #define GR_GL_SQUARE 0x90A3 | 826 #define GR_GL_SQUARE 0x90A3 |
888 #define GR_GL_ROUND 0x90A4 | 827 #define GR_GL_ROUND 0x90A4 |
889 #define GR_GL_TRIANGULAR 0x90A5 | |
890 | 828 |
891 // join values | 829 // join values |
892 /* GL_NONE */ | |
893 /* GL_ROUND_NV */ | |
894 #define GR_GL_BEVEL 0x90A6 | 830 #define GR_GL_BEVEL 0x90A6 |
895 #define GR_GL_MITER_REVERT 0x90A7 | 831 #define GR_GL_MITER_REVERT 0x90A7 |
896 #define GR_GL_MITER_TRUNCATE 0x90A8 | |
897 | 832 |
898 // glyph loading values | 833 // glyph loading values |
899 #define GR_GL_STANDARD_FONT_NAME 0x9072 | |
900 #define GR_GL_SYSTEM_FONT_NAME 0x9073 | |
901 #define GR_GL_FILE_NAME 0x9074 | |
902 #define GR_GL_STANDARD_FONT_FORMAT 0x936C | 834 #define GR_GL_STANDARD_FONT_FORMAT 0x936C |
903 #define GR_GL_SKIP_MISSING_GLYPH 0x90A9 | |
904 #define GR_GL_USE_MISSING_GLYPH 0x90AA | |
905 #define GR_GL_FONT_GLYPHS_AVAILABLE 0x9368 | 835 #define GR_GL_FONT_GLYPHS_AVAILABLE 0x9368 |
906 #define GR_GL_FONT_TARGET_UNAVAILABLE 0x9369 | |
907 #define GR_GL_FONT_UNAVAILABLE 0x936A | |
908 #define GR_GL_FONT_UNINTELLIGIBLE 0x936B | |
909 /* GL_INVALID_ENUM */ | |
910 /* GL_INVALID_VALUE */ | |
911 /* GL_OUT_OF_MEMORY */ | |
912 | 836 |
913 // NV_path_rendering extension to ARB_program_interface_query: | 837 // NV_path_rendering extension to ARB_program_interface_query: |
914 // .. corresponds to the set of active input variables used by the fragment | 838 // .. corresponds to the set of active input variables used by the fragment |
915 // shader stage of <program> (if a fragment stage exists). | 839 // shader stage of <program> (if a fragment stage exists). |
916 #define GR_GL_FRAGMENT_INPUT 0x936D | 840 #define GR_GL_FRAGMENT_INPUT 0x936D |
917 | 841 |
918 // NV_path_rendering extension to EXT_direct_state_access: | 842 // NV_path_rendering extension to EXT_direct_state_access: |
919 // [the matrix functions] must support the PATH_PROJECTION_NV and | 843 // [the matrix functions] must support the PATH_PROJECTION_NV and |
920 // PATH_MODELVIEW_NV tokens for matrixMode. | 844 // PATH_MODELVIEW_NV tokens for matrixMode. |
921 #define GR_GL_PATH_PROJECTION 0x1701 | 845 #define GR_GL_PATH_PROJECTION 0x1701 |
922 #define GR_GL_PATH_MODELVIEW 0x1700 | 846 #define GR_GL_PATH_MODELVIEW 0x1700 |
923 | 847 |
924 /* ARM specific define for MSAA support on framebuffer fetch */ | 848 /* ARM specific define for MSAA support on framebuffer fetch */ |
925 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65 | 849 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65 |
926 | 850 |
927 #endif | 851 #endif |
OLD | NEW |