00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "config_mesadisplay.h"
00016 #include "osMesaGraphicsBuffer.h"
00017 #include "osMesaGraphicsPipe.h"
00018 #include "osMesaGraphicsStateGuardian.h"
00019 #include "graphicsPipeSelection.h"
00020 #include "dconfig.h"
00021 #include "mesagsg.h"
00022
00023 ConfigureDef(config_mesadisplay);
00024 NotifyCategoryDef(mesadisplay, "display");
00025
00026 ConfigureFn(config_mesadisplay) {
00027 init_libmesadisplay();
00028 }
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 void
00039 init_libmesadisplay() {
00040 static bool initialized = false;
00041 if (initialized) {
00042 return;
00043 }
00044 initialized = true;
00045
00046 OsMesaGraphicsBuffer::init_type();
00047 OsMesaGraphicsPipe::init_type();
00048 OSMesaGraphicsStateGuardian::init_type();
00049
00050 GraphicsPipeSelection *selection = GraphicsPipeSelection::get_global_ptr();
00051 selection->add_pipe_type(OsMesaGraphicsPipe::get_class_type(),
00052 OsMesaGraphicsPipe::pipe_constructor);
00053
00054 Mesainit_classes();
00055 }
00056
00057
00058
00059
00060
00061
00062 int
00063 get_pipe_type_mesadisplay() {
00064 return OsMesaGraphicsPipe::get_class_type().get_index();
00065 }