Revision: 75534
http://sourceforge.net/p/brlcad/code/75534
Author: starseeker
Date: 2020-04-22 14:35:26 +0000 (Wed, 22 Apr 2020)
Log Message:
-----------
Add a few fb util functions
Modified Paths:
--------------
brlcad/branches/dm-fb-merge/include/dm/defines.h
brlcad/branches/dm-fb-merge/include/dm/util.h
brlcad/branches/dm-fb-merge/include/dm.h
Modified: brlcad/branches/dm-fb-merge/include/dm/defines.h
===================================================================
--- brlcad/branches/dm-fb-merge/include/dm/defines.h 2020-04-22 14:30:40 UTC
(rev 75533)
+++ brlcad/branches/dm-fb-merge/include/dm/defines.h 2020-04-22 14:35:26 UTC
(rev 75534)
@@ -60,6 +60,16 @@
const struct dm * const p;
};
+/* The internals of the framebuffer structure are hidden using the PImpl
pattern */
+struct fb_impl;
+struct fb {
+ struct fb_impl *i;
+};
+
+struct fb_plugin {
+ const struct fb * const p;
+};
+
#endif /* DM_DEFINES_H */
/** @} */
Modified: brlcad/branches/dm-fb-merge/include/dm/util.h
===================================================================
--- brlcad/branches/dm-fb-merge/include/dm/util.h 2020-04-22 14:30:40 UTC
(rev 75533)
+++ brlcad/branches/dm-fb-merge/include/dm/util.h 2020-04-22 14:35:26 UTC
(rev 75534)
@@ -35,6 +35,14 @@
DM_EXPORT int draw_Line3D(struct dm *dmp, point_t pt1, point_t pt2);
+DM_EXPORT int fb_sim_view(struct fb *ifp, int xcenter, int ycenter, int xzoom,
int yzoom);
+
+DM_EXPORT int fb_sim_getview(struct fb *ifp, int *xcenter, int *ycenter, int
*xzoom, int *yzoom);
+
+DM_EXPORT int fb_sim_cursor(struct fb *ifp, int mode, int x, int y);
+
+DM_EXPORT int fb_sim_getcursor(struct fb *ifp, int *mode, int *x, int *y);
+
__END_DECLS
#endif /* DM_UTIL_H */
Modified: brlcad/branches/dm-fb-merge/include/dm.h
===================================================================
--- brlcad/branches/dm-fb-merge/include/dm.h 2020-04-22 14:30:40 UTC (rev
75533)
+++ brlcad/branches/dm-fb-merge/include/dm.h 2020-04-22 14:35:26 UTC (rev
75534)
@@ -350,17 +350,8 @@
#define RGBPIXEL_NULL (unsigned char *) 0
#define COLORMAP_NULL (ColorMap *) 0
-/* The internals of the framebuffer structure are hidden using the PImpl
pattern */
-struct fb_impl;
-struct fb {
- struct fb_impl *i;
-};
#define FB_NULL (struct fb *) 0
-struct fb_plugin {
- const struct fb * const p;
-};
-
/**
* assert the integrity of a framebuffer struct.
*/
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits