Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0cb5939f
Kaydet (Commit)
0cb5939f
authored
Agu 09, 2014
tarafından
weigao
Kaydeden (comit)
Markus Mohrhard
Agu 13, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
modify screen text color to blue
Change-Id: I80435a980550a2b74657442ef1b44ca8e3825a97
üst
b80cd0c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
screenTextFragmentShader.glsl
chart2/opengl/screenTextFragmentShader.glsl
+2
-1
GL3DRenderer.hxx
chart2/source/view/inc/GL3DRenderer.hxx
+1
-0
GL3DRenderer.cxx
chart2/source/view/main/GL3DRenderer.cxx
+4
-0
No files found.
chart2/opengl/screenTextFragmentShader.glsl
Dosyayı görüntüle @
0cb5939f
...
...
@@ -9,10 +9,11 @@
varying
vec2
vTexCoord
;
uniform
sampler2D
TextTex
;
uniform
vec4
textColor
;
void
main
()
{
vec3
color
=
texture2D
(
TextTex
,
vTexCoord
).
rgb
;
gl_FragColor
=
vec4
(
color
,
1
.
0
-
color
.
r
);
gl_FragColor
=
vec4
(
textColor
.
rgb
,
1
.
0
-
color
.
r
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
chart2/source/view/inc/GL3DRenderer.hxx
Dosyayı görüntüle @
0cb5939f
...
...
@@ -323,6 +323,7 @@ private:
GLint
m_ScreenTextVertexID
;
GLint
m_ScreenTextTexCoordID
;
GLint
m_ScreenTextTexID
;
GLint
m_ScreenTextColorID
;
// CommonProID
GLint
m_CommonProID
;
...
...
chart2/source/view/main/GL3DRenderer.cxx
Dosyayı görüntüle @
0cb5939f
...
...
@@ -190,6 +190,7 @@ OpenGL3DRenderer::ShaderResources::ShaderResources()
,
m_ScreenTextVertexID
(
0
)
,
m_ScreenTextTexCoordID
(
0
)
,
m_ScreenTextTexID
(
0
)
,
m_ScreenTextColorID
(
0
)
,
m_CommonProID
(
0
)
,
m_2DVertexID
(
0
)
,
m_2DColorID
(
0
)
...
...
@@ -305,6 +306,7 @@ void OpenGL3DRenderer::ShaderResources::LoadShaders()
m_ScreenTextVertexID
=
glGetAttribLocation
(
m_ScreenTextProID
,
"vPosition"
);
m_ScreenTextTexCoordID
=
glGetAttribLocation
(
m_ScreenTextProID
,
"texCoord"
);
m_ScreenTextTexID
=
glGetUniformLocation
(
m_ScreenTextProID
,
"TextTex"
);
m_ScreenTextColorID
=
glGetUniformLocation
(
m_ScreenTextProID
,
"textColor"
);
m_CommonProID
=
OpenGLHelper
::
LoadShaders
(
"commonVertexShader"
,
"commonFragmentShader"
);
m_MatrixID
=
glGetUniformLocation
(
m_CommonProID
,
"MVP"
);
...
...
@@ -1877,6 +1879,8 @@ void OpenGL3DRenderer::ReleaseScreenTextTexture()
void
OpenGL3DRenderer
::
RenderScreenTextShape
()
{
glUseProgram
(
maResources
.
m_ScreenTextProID
);
glm
::
vec4
textColor
=
glm
::
vec4
(
0.0
,
0.0
,
1.0
,
1.0
);
glUniform4fv
(
maResources
.
m_ScreenTextColorID
,
1
,
&
textColor
[
0
]);
CHECK_GL_ERROR
();
for
(
size_t
i
=
0
;
i
<
m_ScreenTextInfoList
.
size
();
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment