Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-07-11 01:35:17 +0400
committerTon Roosendaal <ton@blender.org>2004-07-11 01:35:17 +0400
commiteac4e86539b4cba3d4756a86783037ed0b3bea38 (patch)
treef936dd72208ce6895e697353988ddd0ce1b5dbb0 /source/blender/include
parentd5272c665f17e39904a3c9fb3c58f1b8cca48300 (diff)
Long on the todolist: a patch to have pointsize working on systems that
don't have them larger than 1, since vertices are drawn with it. It is solved by patching code with minimal confusement. So you can get automatic patched glPoints with: bglBegin(GL_POINTS); bglVertex3fv(vector); bglEnd(); In glutil.c the wrapper can be found, that checks for maximum Pointsize, and bypasses it to a glBitmap then.
Diffstat (limited to 'source/blender/include')
-rw-r--r--source/blender/include/BIF_glutil.h7
-rw-r--r--source/blender/include/BIF_interface.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/include/BIF_glutil.h b/source/blender/include/BIF_glutil.h
index baaaf4cf40e..b04705c7b02 100644
--- a/source/blender/include/BIF_glutil.h
+++ b/source/blender/include/BIF_glutil.h
@@ -187,5 +187,12 @@ void gla2DDrawTranslatePtv (gla2DDrawInfo *di, float world[2], int screen_r[2]
*/
void glaEnd2DDraw (gla2DDrawInfo *di);
+/* use this for platform hacks. for now glPointSize is solved here */
+void bglBegin(int mode);
+void bglEnd(void);
+void bglVertex3fv(float *vec);
+void bglVertex2fv(float *vec);
+
+
#endif /* BIF_GLUTIL_H */
diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h
index 048417dff0a..30b79c09136 100644
--- a/source/blender/include/BIF_interface.h
+++ b/source/blender/include/BIF_interface.h
@@ -178,6 +178,9 @@ void uiFreeBlocksWin(struct ListBase *lb, int win);
uiBlock *uiNewBlock(struct ListBase *lb, char *name, short dt, short font, short win);
uiBlock *uiGetBlock(char *name, struct ScrArea *sa);
+void uiBlockPickerButtons(struct uiBlock *block, float *col, float *hsv, float *old, char mode);
+
+
/* automatic aligning, horiz or verical */
void uiBlockBeginAlign(uiBlock *block);
void uiBlockEndAlign(uiBlock *block);