D2d offscreen rendering finish up.

This commit is contained in:
jmsgrogan 2023-01-12 09:18:16 +00:00
parent 8c814ce89f
commit c63138c455
32 changed files with 288 additions and 64 deletions

View file

@ -0,0 +1,41 @@
#pragma once
#include "LatexSymbols.h"
#include <string>
#include <memory>
#include <vector>
class LatexMathExpression
{
public:
LatexMathExpression(const std::string& expression = {})
: mRawExpression(expression)
{
}
void parse()
{
for (auto c : mRawExpression)
{
}
}
const std::vector<LatexMathSymbol>& getSymbols() const
{
return mSymbols;
}
private:
unsigned mOpenTagCount{ 0 };
std::string mRawExpression;
std::unique_ptr<LatexMathExpression> mSuperScriptExpr;
std::unique_ptr<LatexMathExpression> mSubScriptExpr;
std::unique_ptr<LatexMathExpression> mEnclosedExpr;
std::vector<LatexMathSymbol> mSymbols;
};