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
10e8194d
Kaydet (Commit)
10e8194d
authored
Şub 15, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Şub 15, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove unused functions
Change-Id: I5e176c705cc373333831e4b833386ed707418d2e
üst
6d6ba15f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
91 deletions
+0
-91
OpenGLRender.cxx
chart2/source/view/main/OpenGLRender.cxx
+0
-89
OpenGLRender.hxx
chart2/source/view/main/OpenGLRender.hxx
+0
-2
No files found.
chart2/source/view/main/OpenGLRender.cxx
Dosyayı görüntüle @
10e8194d
...
@@ -588,95 +588,6 @@ void OpenGLRender::renderToBitmap()
...
@@ -588,95 +588,6 @@ void OpenGLRender::renderToBitmap()
glFlush
();
glFlush
();
}
}
int
OpenGLRender
::
RenderTexture2FBO
(
GLuint
TexID
)
{
CHECK_GL_ERROR
();
glClear
(
GL_COLOR_BUFFER_BIT
|
GL_DEPTH_BUFFER_BIT
);
glDepthMask
(
GL_FALSE
);
glUseProgram
(
m_RenderProID
);
glEnableVertexAttribArray
(
m_RenderVertexID
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
m_RenderVertexBuf
);
glVertexAttribPointer
(
m_RenderVertexID
,
// attribute. No particular reason for 0, but must match the layout in the shader.
3
,
// size
GL_FLOAT
,
// type
GL_FALSE
,
// normalized?
0
,
// stride
(
void
*
)
0
// array buffer offset
);
glEnableVertexAttribArray
(
m_RenderTexCoordID
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
m_RenderTexCoordBuf
);
glVertexAttribPointer
(
m_RenderTexCoordID
,
// attribute. No particular reason for 0, but must match the layout in the shader.
2
,
// size
GL_FLOAT
,
// type
GL_FALSE
,
// normalized?
0
,
// stride
(
void
*
)
0
// array buffer offset
);
glBindTexture
(
GL_TEXTURE_2D
,
TexID
);
glUniform1i
(
m_RenderTexID
,
0
);
//TODO: moggi: get rid fo GL_QUADS
glDrawArrays
(
GL_QUADS
,
0
,
4
);
glDisableVertexAttribArray
(
m_RenderTexCoordID
);
glDisableVertexAttribArray
(
m_RenderVertexID
);
glBindTexture
(
GL_TEXTURE_2D
,
0
);
glUseProgram
(
0
);
glDepthMask
(
GL_TRUE
);
CHECK_GL_ERROR
();
m_fZStep
+=
Z_STEP
;
return
0
;
}
int
OpenGLRender
::
RenderTexture
(
GLuint
TexID
)
{
glClear
(
GL_COLOR_BUFFER_BIT
|
GL_DEPTH_BUFFER_BIT
);
glUseProgram
(
m_RenderProID
);
glEnableVertexAttribArray
(
m_RenderVertexID
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
m_RenderVertexBuf
);
glVertexAttribPointer
(
m_RenderVertexID
,
// attribute. No particular reason for 0, but must match the layout in the shader.
3
,
// size
GL_FLOAT
,
// type
GL_FALSE
,
// normalized?
0
,
// stride
(
void
*
)
0
// array buffer offset
);
glEnableVertexAttribArray
(
m_RenderTexCoordID
);
glBindBuffer
(
GL_ARRAY_BUFFER
,
m_RenderTexCoordBuf
);
glVertexAttribPointer
(
m_RenderTexCoordID
,
// attribute. No particular reason for 0, but must match the layout in the shader.
2
,
// size
GL_FLOAT
,
// type
GL_FALSE
,
// normalized?
0
,
// stride
(
void
*
)
0
// array buffer offset
);
glBindTexture
(
GL_TEXTURE_2D
,
TexID
);
glUniform1i
(
m_RenderTexID
,
0
);
//TODO: moggi: get rid fo GL_QUADS
glDrawArrays
(
GL_QUADS
,
0
,
4
);
glDisableVertexAttribArray
(
m_RenderTexCoordID
);
glDisableVertexAttribArray
(
m_RenderVertexID
);
glBindTexture
(
GL_TEXTURE_2D
,
0
);
glUseProgram
(
0
);
#if defined( WNT )
SwapBuffers
(
glWin
.
hDC
);
#elif defined( MACOSX )
#elif defined( UNX )
glXSwapBuffers
(
glWin
.
dpy
,
glWin
.
win
);
#endif
glFlush
();
m_fZStep
+=
Z_STEP
;
return
0
;
}
int
OpenGLRender
::
CreateTextureObj
(
int
width
,
int
height
)
int
OpenGLRender
::
CreateTextureObj
(
int
width
,
int
height
)
{
{
glGenTextures
(
1
,
&
m_TextureObj
);
glGenTextures
(
1
,
&
m_TextureObj
);
...
...
chart2/source/view/main/OpenGLRender.hxx
Dosyayı görüntüle @
10e8194d
...
@@ -191,8 +191,6 @@ private:
...
@@ -191,8 +191,6 @@ private:
int
CreateTextureObj
(
int
width
,
int
height
);
int
CreateTextureObj
(
int
width
,
int
height
);
int
CreateRenderObj
(
int
width
,
int
height
);
int
CreateRenderObj
(
int
width
,
int
height
);
int
CreateFrameBufferObj
();
int
CreateFrameBufferObj
();
int
RenderTexture
(
GLuint
TexID
);
int
RenderTexture2FBO
(
GLuint
TexID
);
#if defined( _WIN32 )
#if defined( _WIN32 )
int
InitTempWindow
(
HWND
*
hwnd
,
int
width
,
int
height
,
PIXELFORMATDESCRIPTOR
inPfd
);
int
InitTempWindow
(
HWND
*
hwnd
,
int
width
,
int
height
,
PIXELFORMATDESCRIPTOR
inPfd
);
bool
WGLisExtensionSupported
(
const
char
*
extension
);
bool
WGLisExtensionSupported
(
const
char
*
extension
);
...
...
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