summaryrefslogtreecommitdiff
path: root/chart2/opengl
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-03-13 14:22:59 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-03-14 19:59:21 +0100
commit04b70c682e2cdc52b144961a83d05fd203de6884 (patch)
tree7a88b6307b0d229575accdedebb5ee6a6e002ff0 /chart2/opengl
parent84f4de3b65cd0f861e80c69b773004f28f9f8d9f (diff)
Move OpenGLRender to vcl
Change-Id: I6383ae3f94fc18aec92596b9d857d3fde5869dd6
Diffstat (limited to 'chart2/opengl')
-rw-r--r--chart2/opengl/backgroundFragmentShader.glsl17
-rw-r--r--chart2/opengl/backgroundVertexShader.glsl21
-rw-r--r--chart2/opengl/commonFragmentShader.glsl17
-rw-r--r--chart2/opengl/commonVertexShader.glsl21
-rw-r--r--chart2/opengl/debugFragmentShader.glsl17
-rw-r--r--chart2/opengl/debugVertexShader.glsl19
-rw-r--r--chart2/opengl/symbolFragmentShader.glsl101
-rw-r--r--chart2/opengl/symbolVertexShader.glsl23
-rw-r--r--chart2/opengl/textFragmentShader.glsl17
-rw-r--r--chart2/opengl/textVertexShader.glsl20
10 files changed, 0 insertions, 273 deletions
diff --git a/chart2/opengl/backgroundFragmentShader.glsl b/chart2/opengl/backgroundFragmentShader.glsl
deleted file mode 100644
index 805789e731ed..000000000000
--- a/chart2/opengl/backgroundFragmentShader.glsl
+++ /dev/null
@@ -1,17 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-varying vec4 fragmentColor;
-
-void main()
-{
- gl_FragColor = fragmentColor;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/backgroundVertexShader.glsl b/chart2/opengl/backgroundVertexShader.glsl
deleted file mode 100644
index 6d9d6c21f3c9..000000000000
--- a/chart2/opengl/backgroundVertexShader.glsl
+++ /dev/null
@@ -1,21 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-attribute vec3 vPosition;
-uniform mat4 MVP;
-attribute vec4 vColor;
-varying vec4 fragmentColor;
-
-void main()
-{
- gl_Position = MVP * vec4(vPosition, 1);
- fragmentColor = vColor;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/commonFragmentShader.glsl b/chart2/opengl/commonFragmentShader.glsl
deleted file mode 100644
index 805789e731ed..000000000000
--- a/chart2/opengl/commonFragmentShader.glsl
+++ /dev/null
@@ -1,17 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-varying vec4 fragmentColor;
-
-void main()
-{
- gl_FragColor = fragmentColor;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/commonVertexShader.glsl b/chart2/opengl/commonVertexShader.glsl
deleted file mode 100644
index f32e3fd38a91..000000000000
--- a/chart2/opengl/commonVertexShader.glsl
+++ /dev/null
@@ -1,21 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-attribute vec3 vPosition;
-uniform mat4 MVP;
-uniform vec4 vColor;
-varying vec4 fragmentColor;
-
-void main()
-{
- gl_Position = MVP * vec4(vPosition, 1);
- fragmentColor = vColor;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/debugFragmentShader.glsl b/chart2/opengl/debugFragmentShader.glsl
deleted file mode 100644
index d36c4f4d46e4..000000000000
--- a/chart2/opengl/debugFragmentShader.glsl
+++ /dev/null
@@ -1,17 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-varying vec4 fragmentColor;
-
-void main()
-{
- gl_FragColor = vec4(1.0, 1.0, 0.0, 0.5);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/debugVertexShader.glsl b/chart2/opengl/debugVertexShader.glsl
deleted file mode 100644
index 762de3121419..000000000000
--- a/chart2/opengl/debugVertexShader.glsl
+++ /dev/null
@@ -1,19 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-attribute vec3 vPosition;
-uniform vec4 vColor;
-varying vec4 fragmentColor;
-
-void main()
-{
- gl_Position = vec4(vPosition, 1);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/symbolFragmentShader.glsl b/chart2/opengl/symbolFragmentShader.glsl
deleted file mode 100644
index 3ac6b0305285..000000000000
--- a/chart2/opengl/symbolFragmentShader.glsl
+++ /dev/null
@@ -1,101 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#version 120
-
-varying vec4 fragmentColor;
-uniform int shape;
-
-void main()
-{
- vec2 p = gl_PointCoord * 2.0 - vec2(1.0); // (0,0) in the center
- if(shape == 0)
- {
- }
- else if(shape == 1) //diamon
- {
- if (abs(p.x) + abs(p.y) > 1)
- discard;
- }
- else if(shape == 2) // arrow
- {
- if(p.y < 0 && (abs(p.x) + abs(p.y)) > 1)
- discard;
- else if(p.y > 0 && abs(p.x) > 0.5)
- discard;
- }
- else if(shape == 3) //arrow up
- {
- if(p.y > 0 && (abs(p.x) + abs(p.y)) > 1)
- discard;
- else if(p.y < 0 && abs(p.x) > 0.5)
- discard;
- }
- else if(shape == 4) // arrow right
- {
- if(p.x > 0 && (abs(p.x) + abs(p.y)) > 1)
- discard;
- else if(p.x < 0 && abs(p.y) > 0.5)
- discard;
- }
- else if(shape == 5) // arrow left
- {
- if(p.x < 0 && (abs(p.x) + abs(p.y)) > 1)
- discard;
- else if(p.x > 0 && abs(p.y) > 0.5)
- discard;
- }
- else if(shape == 6) // hour glass
- {
- if(abs(p.x) < abs(p.y))
- discard;
- }
- else if(shape == 7) // bow tie
- {
- if(abs(p.y) < abs(p.x))
- discard;
- }
- else if(shape == 8) // circle
- {
- if(dot(p.x, p.y) > 1)
- discard;
- }
- else if(shape == 9) // star
- {
- if(sqrt(abs(p.x))+sqrt(abs(p.y)) > 1)
- discard;
- }
- else if(shape == 10) // X
- {
- if(abs(abs(p.x) - abs(p.y)) > 0.2)
- discard;
- }
- else if(shape == 11) // Plus
- {
- if(abs(p.x) > 0.2 && abs(p.y) > 0.2)
- discard;
- }
- else if(shape == 12) // asterisk
- {
- }
- else if(shape == 13) // horizontal bar
- {
- if(abs(p.y) > 0.2)
- discard;
- }
- else if(shape == 14) // vertical bar
- {
- if(abs(p.x) > 0.2)
- discard;
- }
-
- gl_FragColor = fragmentColor;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/symbolVertexShader.glsl b/chart2/opengl/symbolVertexShader.glsl
deleted file mode 100644
index 3cf9f41ef21b..000000000000
--- a/chart2/opengl/symbolVertexShader.glsl
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#version 120
-
-attribute vec3 vPosition;
-uniform mat4 MVP;
-uniform vec4 vColor;
-varying vec4 fragmentColor;
-
-void main()
-{
- gl_Position = MVP * vec4(vPosition, 1);
- fragmentColor = vColor;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/textFragmentShader.glsl b/chart2/opengl/textFragmentShader.glsl
deleted file mode 100644
index ef8d44d6949d..000000000000
--- a/chart2/opengl/textFragmentShader.glsl
+++ /dev/null
@@ -1,17 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-uniform sampler2D TextTex;
-varying vec2 vTexCoord;
-void main()
-{
- gl_FragColor = vec4(texture2D(TextTex, vTexCoord).rgba);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/opengl/textVertexShader.glsl b/chart2/opengl/textVertexShader.glsl
deleted file mode 100644
index a805229eb07a..000000000000
--- a/chart2/opengl/textVertexShader.glsl
+++ /dev/null
@@ -1,20 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-attribute vec3 vPosition;
-uniform mat4 MVP;
-attribute vec2 texCoord;
-varying vec2 vTexCoord;
-void main()
-{
- gl_Position = MVP * vec4(vPosition, 1);
- vTexCoord = texCoord;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */