mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Formatting
This commit is contained in:
parent
e9aab1c94e
commit
bf0a33876a
@ -21,12 +21,20 @@ spotless {
|
||||
'spine-cocos2dx/src/**/*.h',
|
||||
'spine-cocos2dx/example/Classes/**/*.cpp',
|
||||
'spine-cocos2dx/example/Classes/**/*.h',
|
||||
'spine-sdl/**/*.c',
|
||||
'spine-sdl/**/*.cpp',
|
||||
'spine-sdl/**/*.h',
|
||||
'spine-sfml/**/*.c',
|
||||
'spine-sfml/**/*.cpp',
|
||||
'spine-sfml/**/*.h',
|
||||
'spine-glfw/src/**/*.cpp',
|
||||
'spine-glfw/src/**/*.h',
|
||||
'spine-glfw/example/**/*.cpp',
|
||||
'spine-glfw/example/**/*.h',
|
||||
'spine-sdl/src/**/*.c',
|
||||
'spine-sdl/src/**/*.cpp',
|
||||
'spine-sdl/src/**/*.h',
|
||||
'spine-sdl/example/**/*.c',
|
||||
'spine-sdl/example/**/*.cpp',
|
||||
'spine-sdl/example/**/*.h',
|
||||
'spine-sfml/c/src/**/*.c',
|
||||
'spine-sfml/c/src/**/*.h',
|
||||
'spine-sfml/cpp/src/**/*.cpp',
|
||||
'spine-sfml/cpp/src/**/*.h',
|
||||
'spine-ue/**/*.cpp',
|
||||
'spine-ue/**/*.h',
|
||||
'spine-godot/spine_godot/*.cpp',
|
||||
|
||||
@ -28,8 +28,7 @@ blend_mode_t blend_modes[] = {
|
||||
{(unsigned int) GL_SRC_ALPHA, (unsigned int) GL_ONE, (unsigned int) GL_ONE_MINUS_SRC_ALPHA, (unsigned int) GL_ONE},
|
||||
{(unsigned int) GL_SRC_ALPHA, (unsigned int) GL_ONE, (unsigned int) GL_ONE, (unsigned int) GL_ONE},
|
||||
{(unsigned int) GL_DST_COLOR, (unsigned int) GL_DST_COLOR, (unsigned int) GL_ONE_MINUS_SRC_ALPHA, (unsigned int) GL_ONE_MINUS_SRC_ALPHA},
|
||||
{(unsigned int)GL_ONE, (unsigned int)GL_ONE, (unsigned int)GL_ONE_MINUS_SRC_COLOR, (unsigned int)GL_ONE_MINUS_SRC_COLOR}
|
||||
};
|
||||
{(unsigned int) GL_ONE, (unsigned int) GL_ONE, (unsigned int) GL_ONE_MINUS_SRC_COLOR, (unsigned int) GL_ONE_MINUS_SRC_COLOR}};
|
||||
|
||||
mesh_t *mesh_create() {
|
||||
GLuint vao, vbo, ibo;
|
||||
@ -252,7 +251,8 @@ renderer_t *renderer_create() {
|
||||
texCoord = aTexCoord;
|
||||
gl_Position = uMatrix * vec4(aPos, 0.0, 1.0);
|
||||
}
|
||||
)", R"(
|
||||
)",
|
||||
R"(
|
||||
#version 330 core
|
||||
in vec4 lightColor;
|
||||
in vec4 darkColor;
|
||||
|
||||
@ -40,8 +40,7 @@ sf::BlendMode blendModes[] = {
|
||||
sf::BlendMode(sf::BlendMode::SrcAlpha, sf::BlendMode::OneMinusSrcAlpha),
|
||||
sf::BlendMode(sf::BlendMode::SrcAlpha, sf::BlendMode::One),
|
||||
sf::BlendMode(sf::BlendMode::DstColor, sf::BlendMode::OneMinusSrcAlpha),
|
||||
sf::BlendMode(sf::BlendMode::One, sf::BlendMode::OneMinusSrcColor)
|
||||
};
|
||||
sf::BlendMode(sf::BlendMode::One, sf::BlendMode::OneMinusSrcColor)};
|
||||
|
||||
sf::BlendMode blendModesPma[] = {
|
||||
sf::BlendMode(sf::BlendMode::One, sf::BlendMode::OneMinusSrcAlpha),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user